Re: writing new regexp functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: writing new regexp functions
Date
Msg-id 26162.1170467791@sss.pgh.pa.us
Whole thread Raw
In response to Re: writing new regexp functions  (Jeremy Drake <pgsql@jdrake.com>)
Responses Re: writing new regexp functions  (David Fetter <david@fetter.org>)
List pgsql-hackers
Jeremy Drake <pgsql@jdrake.com> writes:
> I want to ask, should I break with following substring's precedent, and
> put the pattern first (as most people probably would expect), or should I
> break with perl's precedent and put the pattern second (to behave like
> substring)?

All of SQL's pattern match operators have the pattern on the right, so
my advice is to stick with that and try not to think about Perl ;-)
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: Referential Integrity and SHARE locks
Next
From: David Fetter
Date:
Subject: Re: writing new regexp functions