postgresql/src/backend/utils
Tom Lane 00c5e511b9 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:10 -04:00
..
adt Minor code review for parse_phrase_operator(). 2017-06-26 10:31:10 -04:00
cache Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
error Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
fmgr Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
hash Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
init Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
mb Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
misc Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
mmgr Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
resowner Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
sort Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
time Fix typo in comment in SerializeSnapshot 2017-06-24 13:51:26 +01:00
.gitignore Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
errcodes.txt Identity columns 2017-04-06 08:41:37 -04:00
Gen_dummy_probes.pl Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_dummy_probes.sed Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_fmgrtab.pl Post-PG 10 beta1 pgperltidy run 2017-05-17 19:01:23 -04:00
generate-errcodes.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
Makefile Fix parallel make issue with new fmgrprotos.h 2017-01-23 15:36:27 -05:00
probes.d Rename dtrace probes for ongoing xlog -> wal conversion. 2017-02-09 16:40:19 -05:00