Re: typcategory for regconfig

Поиск
Список
Период
Сортировка
От Dmitry Dolgov
Тема Re: typcategory for regconfig
Дата
Msg-id CA+q6zcVN6utORHLAubqQ1e1zgnDa5413GhG5bo9MtH5+Xn2Szg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: typcategory for regconfig  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: typcategory for regconfig  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Excessive PostmasterIsAlive calls slow down WAL redo
Следующее
От: Tom Lane
Дата:
Сообщение: Re: typcategory for regconfig