postgresql/src
Tom Lane 9bfb1f2d64 Minor code review for parse_phrase_operator().
Fix its header comment, which described the old behavior of the <N>
phrase distance operator; we missed updating that in commit 028350f61.
Also, reset errno before strtol() call, to defend against the possibility
that it was already ERANGE at entry.  (The lack of complaints says that
it generally isn't, but this is at least a latent bug.)  Very minor
stylistic improvements as well.

Victor Drobny noted the obsolete comment, I noted the errno issue.
Back-patch to 9.6 where this code was added, just in case the errno
issue is a live bug in some cases.

Discussion: https://postgr.es/m/2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru
2017-06-26 10:31:19 -04:00
..
backend Minor code review for parse_phrase_operator(). 2017-06-26 10:31:19 -04:00
bin pg_upgrade: start/stop new server after pg_resetwal 2017-06-20 13:20:02 -04:00
common pgindent run for 9.6 2016-06-09 18:02:36 -04:00
fe_utils Restore psql's SIGPIPE setting if popen() fails. 2016-12-07 12:39:24 -05:00
include Fix leaking of small spilled subtransactions during logical decoding. 2017-06-18 19:13:15 -07:00
interfaces Clear auth context correctly when re-connecting after failed auth attempt. 2017-06-07 14:04:54 +03:00
makefiles Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:56 -04:00
pl Translation updates 2017-05-08 10:10:54 -04:00
port Stamp 9.6.3. 2017-05-08 17:15:12 -04:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Avoid regressions in foreign-key-based selectivity estimates. 2017-06-19 15:33:41 -04:00
timezone Fix new warnings from GCC 7 2017-05-16 08:52:39 -04:00
tools Take PROVE_FLAGS from the command line but not the environment 2017-06-10 10:22:14 -04:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Install TAP test infrastructure so it's available for extension testing. 2016-09-23 15:50:00 -04:00
Makefile.global.in Take PROVE_FLAGS from the command line but not the environment 2017-06-10 10:22:14 -04:00
Makefile.shlib Fix typos in comments. 2017-02-06 11:34:15 +02:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00