Re: typcategory for regconfig

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:51:20
Message-ID: CA+q6zcV5pWU9c3y5vmyVPSC6p2EVVokwsCiDvCbAX1Ar0SZfvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 5 April 2018 at 15:48, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Dmitry Dolgov <9erthalion6(at)gmail(dot)com> writes:
>> On 5 April 2018 at 15:27, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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?

Yep, I'll swallow my perfectionism and go with a new function.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Rijkers 2018-04-05 14:02:35 Re: WIP: Covering + unique indexes.
Previous Message David Rowley 2018-04-05 13:50:38 Re: Get the name of the target Relation from Query struct?