postgresql/src
Tom Lane 9a6313f469 Fix pg_ctl's readfile() to not go into infinite loop on an empty file
(could happen if either postgresql.conf or postmaster.opts is empty).
It's been broken since the C version was written for 8.0, so patch
all the way back.

initdb's copy of the function is broken in the same way, but it's
less important there since the input files should never be empty.
Patch that in HEAD only, and also fix some cosmetic differences that
crept into that copy of the function.

Per report from Corry Haines and Jeff Davis.
2009-09-02 02:40:59 +00:00
..
backend Remove duplicate variable initializations identified by clang static checker. 2009-08-30 16:53:37 +00:00
bin Fix pg_ctl's readfile() to not go into infinite loop on an empty file 2009-09-02 02:40:59 +00:00
include Modify the definition of window-function PARTITION BY and ORDER BY clauses 2009-08-27 20:08:12 +00:00
interfaces Fix mismatch in const:ness of parameters. 2009-07-22 11:07:04 +00:00
makefiles Allow out-of-tree builds on mingw and cygwin 2009-01-05 09:27:20 +00:00
pl Fix error cleanup failure caused by 8.4 changes in plpgsql to try to avoid 2009-07-18 19:15:50 +00:00
port 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
template Tweak configure to attempt to add -qnoansialias to CFLAGS whenever running 2009-02-11 20:02:40 +00:00
test Modify the definition of window-function PARTITION BY and ORDER BY clauses 2009-08-27 20:08:12 +00:00
timezone Update time zone data files to tzdata release 2009i: DST law changes in 2009-06-11 17:45:38 +00:00
tools Adjust test_fsync code to be more sane. 2009-08-10 18:19:11 +00:00
tutorial 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00: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 Add the possibility to specify an explicit validator function for foreign-data 2009-02-24 10:06:36 +00:00
Makefile.global.in Fix the makefiles to fail cleanly if Perl is needed but not present. This 2009-06-23 03:46:00 +00:00
Makefile.shlib Allow out-of-tree builds on mingw and cygwin 2009-01-05 09:27:20 +00:00
nls-global.mk Do not msgmerge against /dev/null; merge against the pot file itself 2009-01-20 09:58:50 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00