Re: SQL feature requests - Mailing list pgsql-hackers

From Ron Mayer
Subject Re: SQL feature requests
Date
Msg-id 46CF78E4.6090605@cheapcomplexdevices.com
Whole thread Raw
In response to Re: SQL feature requests  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SQL feature requests
List pgsql-hackers
Tom Lane wrote:
> Part of the reason for being conservative about changing here
> is that we've got a mix of standard and nonstandard behaviors
> 
> A lot of this is legacy behavior that would never have passed muster
> if it had been newly proposed in the last few years --- we have gotten
> *far* stricter about SQL compliance than we used to be.  But at this
> point backwards compatibility also has to weigh heavily.

Has there been any thought to eventually phasing them out?

Perhaps a GUC to give warnings in the log file when
they're encountered.   I guess we'd need 3 levels of
warnings, "off, "reasonable" and "pedantic".   When set
to the reasonable level it could only give smart warning
messages like Warning: Use of frivolous nonstandard behavior XXX. Hint: Use the standard YYY instead.
and when set to pedantic it would point out every
non-standard SQL statement - useful only for someone
to be aware of how much postgresql dependent behavior
they might have.

Then a farther future release could deprecate the
frivolous non-standard pieces presumably leading to
simpler code in the long run.


pgsql-hackers by date:

Previous
From: "Charles N. Charotti"
Date:
Subject: RV: Re: Obfuscated definitions of database objects
Next
From: Tom Lane
Date:
Subject: Re: Buildfarm failures MSVC