Re: WIP: Enhanced ALTER OPERATOR - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIP: Enhanced ALTER OPERATOR
Date
Msg-id 1254.1432147454@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP: Enhanced ALTER OPERATOR  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Uriy Zhuravlev wrote:
>> And can you explain more about the syntax?

> I think he means to treat COMMUTATOR etc like a generic element list,
> i.e. don't define new keywords in kwlist.h/gram.y at all but rather pass
> the names as strings (probably using a list of DefElem) and strcmp()
> them in OperatorUpd() or something.

Yeah.  If they aren't keywords in CREATE OPERATOR, I don't think they
should be in ALTER OPERATOR either.  Indeed, the syntax of the two
commands probably ought to be similar.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Ryan Pedela
Date:
Subject: Re: jsonb concatenate operator's semantics seem questionable
Next
From: Andres Freund
Date:
Subject: Re: WIP: Enhanced ALTER OPERATOR