Removal of operator_precedence_warning

Started by Tom Laneover 5 years ago3 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

I think it's time for $SUBJECT. We added this GUC in 9.5, which
will be EOL by the time of our next major release, and it was never
meant as more than a transitional aid. Moreover, it's been buggy
as heck (cf abb164655, 05104f693, 01e0cbc4f, 4cae471d1), and the
fact that some of those errors went undetected for years shows that
it's not really gotten much field usage.

Hence, I propose the attached. Comments?

regards, tom lane

Attachments:

remove-operator_precedence_warning.patchtext/x-diff; charset=us-ascii; name=remove-operator_precedence_warning.patchDownload+10-535
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Tom Lane (#1)
Re: Removal of operator_precedence_warning

On 2020-Dec-04, Tom Lane wrote:

I think it's time for $SUBJECT. We added this GUC in 9.5, which
will be EOL by the time of our next major release, and it was never
meant as more than a transitional aid. Moreover, it's been buggy
as heck (cf abb164655, 05104f693, 01e0cbc4f, 4cae471d1), and the
fact that some of those errors went undetected for years shows that
it's not really gotten much field usage.

Hence, I propose the attached. Comments?

I wonder if it'd be fruitful to ask the submitters of those bugs about
their experiences with the feature. Did they find it useful in finding
precedence problems in their code? Did they experience other problems
that they didn't report?

Reading the reports mentioned in those commits, it doesn't look like any
of them were actually using the feature -- they all seem to have come
across the problems by accidents of varying nature.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Alvaro Herrera (#2)
Re: Removal of operator_precedence_warning

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:

Reading the reports mentioned in those commits, it doesn't look like any
of them were actually using the feature -- they all seem to have come
across the problems by accidents of varying nature.

The two oldest reports look like the submitters had
operator_precedence_warning turned on in normal use, which is reasonable
given that was early 9.5.x days. The third one looks like it was a test
setup, while the latest bug sounds like it was found by code inspection
not by stumbling over the misbehavior. So people did use it, at least
for awhile. But anyone who's going directly from 9.4 or earlier to v14
is going to have lots more compatibility issues to worry about besides
precedence.

regards, tom lane