Re: update substring pattern matching syntax - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: update substring pattern matching syntax
Date
Msg-id 0f9efbd7-d697-eba5-e48e-9f0d455e9793@2ndquadrant.com
Whole thread Raw
In response to Re: update substring pattern matching syntax  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: update substring pattern matching syntax  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On 2020-06-20 09:08, Fabien COELHO wrote:
> I cannot say I'm a fan of this kind of keywords added for some arguments.
> I guess that it allows distinguishing between variants. I do not have the
> standard at hand: I wanted to check whether these keywords could be
> reordered, i.e. whether SUBSTRING(text ESCAPE ec SIMILAR part) was legal.
> I guess not.

It is not.

> Maybe the doc could advertise more systematically whether a features
> conforms fully or partially to some SQL standards, or is pg specific.

I think that would be useful, but it's probably a broader topic than 
just for this specific function.

> The
> added documentation refers both to SQL:1999 and SQL99. I'd suggest to
> chose one, possibly the former, and use it everywhere consistently.

fixed

> It seems that two instances where not updated to the new syntax, see in
> ./src/backend/catalog/information_schema.sql and
> ./contrib/citext/sql/citext.sql.

done

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Remove a redundant condition check
Next
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Enable Unix-domain sockets support on Windows