Re: typcategory for regconfig - Mailing list pgsql-hackers

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

Right.  So you need to either drop that form, or consider doing
something other than add-a-bool.  Maybe the alternate behavior
should have a different function name, instead of being selected
by an argument?

            regards, tom lane


pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: typcategory for regconfig
Next
From: Simon Riggs
Date:
Subject: Re: Excessive PostmasterIsAlive calls slow down WAL redo