Re: tsearch consistency trigger on inheritated table - Mailing list pgsql-general

From Björn Metzdorf
Subject Re: tsearch consistency trigger on inheritated table
Date
Msg-id 03d601c28b33$326e0820$81c206d4@office.turtleentertainment.de
Whole thread Raw
In response to tsearch consistency trigger on inheritated table  ("Bjoern Metzdorf" <bm@turtle-entertainment.de>)
Responses Re: tsearch consistency trigger on inheritated table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> The corresponding code part in txtidx.c:
>
> if (numattr < 0 || (!(oidtype == TEXTOID || oidtype == VARCHAROID)))
> {
>    elog(NOTICE, "TSearch: can not find field '%s'", trigger->tgargs[i]);
>    continue;
> }
>
> Question is, do I break anything if I add "|| oidtype == CHARACTEROID" ?

Attached a quick hack to txtidx.c (added BPCHAROID).

Hope this does not break things. Comments?

Regards,
Bjoern

Attachment

pgsql-general by date:

Previous
From: Björn Metzdorf
Date:
Subject: Re: tsearch consistency trigger on inheritated table
Next
From: "Josh Berkus"
Date:
Subject: Re: Upgrade to dual processor machine?