Re: tsearch in core patch, for inclusion

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: tsearch in core patch, for inclusion
Date: 2007-02-22 13:33:57
Message-ID: 45DD9BC5.2010307@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> CREATE FULLTEXT CONFIGURATION myfts LIKE template_cfg AS DEFAULT;
> SELECT add_fulltext_config('myfts', 'template_cfg', True);
That's simple, but what about
CREATE FULLTEXT MAPPING ON cfgname FOR lexemetypename[, ...] WITH dictname1[, ...];
?

SELECT create_fulltext_mapping(cfgname, '{lexemetypename[, ...]}'::text[],
'{dictname1[, ...]}'::text[]);

Seems rather ugly for me...

And function interface does not provide autocompletion and online help in psql.
\df says only types of arguments, not a meaning.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Phil Currier 2007-02-22 14:06:48 Re: Column storage positions
Previous Message Florian G. Pflug 2007-02-22 13:26:41 What is CheckPoint.undo needed for?

Browse pgsql-patches by date

  From Date Subject
Next Message Guillaume Smet 2007-02-22 14:00:32 Re: First implementation of GIN for pg_trgm
Previous Message Teodor Sigaev 2007-02-22 13:26:23 Re: tsearch in core patch, for inclusion