From: | Dmitry Dolgov <9erthalion6(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "PostgreSQL-dev(dot)" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: typcategory for regconfig |
Date: | 2018-04-05 13:43:32 |
Message-ID: | CA+q6zcVN6utORHLAubqQ1e1zgnDa5413GhG5bo9MtH5+Xn2Szg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On 5 April 2018 at 15:27, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Dmitry Dolgov <9erthalion6(at)gmail(dot)com> writes:
>> Does anyone know, why `typcategory` value for tsvector `regconfig` is
>> `TYPCATEGORY_NUMERIC`,
>
> Because OID is. I think we need all the OID-alias types to be the same
> category as OID, else we're likely to have issues with queries like
Ok, I see, thanks.
> I think you need to bite the bullet and just provide the flag in
> the 3-argument case (regconfig,json[b],bool).
Well, it's already like that. I have now:
to_tsvector(json(b), boolean)
to_tsvector(regconfig, json(b), boolean)
and as I mentioned above the first one is conflicting with
to_tsvector(regconfig, text).
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-04-05 13:48:17 | Re: typcategory for regconfig |
Previous Message | Alvaro Herrera | 2018-04-05 13:42:37 | Re: Excessive PostmasterIsAlive calls slow down WAL redo |