Re: typcategory for regconfig - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: typcategory for regconfig
Date
Msg-id CA+q6zcVN6utORHLAubqQ1e1zgnDa5413GhG5bo9MtH5+Xn2Szg@mail.gmail.com
Whole thread Raw
In response to Re: typcategory for regconfig  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: typcategory for regconfig
List pgsql-hackers
> On 5 April 2018 at 15:27, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dmitry Dolgov <9erthalion6@gmail.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).


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Excessive PostmasterIsAlive calls slow down WAL redo
Next
From: Tom Lane
Date:
Subject: Re: typcategory for regconfig