mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
config
contrib
adminpack
auth_delay
auto_explain
btree_gin
btree_gist
chkpass
citext
cube
dblink
dict_int
dict_xsyn
dummy_seclabel
earthdistance
file_fdw
fuzzystrmatch
hstore
intagg
intarray
isn
lo
ltree
oid2name
pageinspect
passwordcheck
pg_archivecleanup
pg_buffercache
pg_freespacemap
pg_standby
pg_stat_statements
pg_test_fsync
pg_test_timing
pg_trgm
pg_upgrade
pg_upgrade_support
pg_xlogdump
pgbench
pgcrypto
pgrowlocks
pgstattuple
postgres_fdw
seg
sepgsql
spi
sslinfo
start-scripts
tablefunc
tcn
test_parser
expected
sql
test_parser.sql
.gitignore
Makefile
test_parser--1.0.sql
test_parser--unpackaged--1.0.sql
test_parser.c
test_parser.control
tsearch2
unaccent
uuid-ossp
vacuumlo
worker_spi
xml2
Makefile
README
contrib-global.mk
doc
src
.dir-locals.el
.gitignore
COPYRIGHT
GNUmakefile.in
Makefile
README
README.git
aclocal.m4
configure
configure.in
This isn't fully tested as yet, in particular I'm not sure that the "foo--unpackaged--1.0.sql" scripts are OK. But it's time to get some buildfarm cycles on it. sepgsql is not converted to an extension, mainly because it seems to require a very nonstandard installation process. Dimitri Fontaine and Tom Lane
19 lines
564 B
SQL
19 lines
564 B
SQL
CREATE EXTENSION test_parser;
|
|
|
|
-- make test configuration using parser
|
|
|
|
CREATE TEXT SEARCH CONFIGURATION testcfg (PARSER = testparser);
|
|
|
|
ALTER TEXT SEARCH CONFIGURATION testcfg ADD MAPPING FOR word WITH simple;
|
|
|
|
-- ts_parse
|
|
|
|
SELECT * FROM ts_parse('testparser', 'That''s simple parser can''t parse urls like http://some.url/here/');
|
|
|
|
SELECT to_tsvector('testcfg','That''s my first own parser');
|
|
|
|
SELECT to_tsquery('testcfg', 'star');
|
|
|
|
SELECT ts_headline('testcfg','Supernovae stars are the brightest phenomena in galaxies',
|
|
to_tsquery('testcfg', 'stars'));
|