Actually, I think I figured it out. Please look over the GIST/GIN parts of this patch and see if they're OK with you.
Looks good, thank you. Why don't use suggested way for GIN index over tsvector? http://archives.postgresql.org/pgsql-hackers/2008-04/msg00812.php It's nothing to cost light optimization...
This is still WIP because I haven't touched any contrib code, but as far as the main backend goes I think it's ready to apply.
Patch to all contrib modules: http://www.sigaev.ru/misc/contrib.patch.gz -- Teodor Sigaev E-mail: [EMAIL PROTECTED] WWW: http://www.sigaev.ru/ -- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches