postgresql/src
Tom Lane 448b140ce7 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:41:27 +00:00
..
backend Fix overflow for INTERVAL 'x ms' where x is more than a couple million, 2009-08-18 21:23:50 +00:00
bin Fix pg_ctl's readfile() to not go into infinite loop on an empty file 2009-09-02 02:41:27 +00:00
corba make sure the $Id tags are converted to $PostgreSQL as well ... 2003-11-29 22:41:33 +00:00
include tag 8.0.21 2009-03-13 02:30:37 +00:00
interfaces tag 8.0.21 2009-03-13 02:30:37 +00:00
makefiles Remove $(DESTDIR) from the pgxs BE_DLLLIBS= -L path for Darwin. 2006-01-19 21:20:32 +00:00
pl Adjust recent PERL_SYS_INIT3 call to avoid platforms where it might fail, and to remove compilation warning. Backpatch the release 7.4 2009-06-05 20:32:58 +00:00
port tag 8.0.21 2009-03-13 02:30:37 +00:00
template Support Sun's compiler on SunOS4 (a/k/a Solaris 9). Per ayan@ayan.net 2004-12-29 23:47:40 +00:00
test Fix the handling of sub-SELECTs appearing in the arguments of an outer-level 2009-04-25 16:45:25 +00:00
timezone Update time zone data files to tzdata release 2009i: DST law changes in 2009-06-11 17:46:10 +00:00
tools Create a script to handle stamping release version numbers into files, 2008-06-10 18:09:15 +00:00
tutorial Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4, 2006-05-21 19:57:40 +00:00
utils PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with 2004-07-30 12:26:40 +00:00
bcc32.mak Add -N make flag to bcc builds from /src dir. 2005-05-13 18:13:16 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
Makefile Adjust src/tutorial Makefile so that it can use pgxs. This allows the 2005-01-13 18:23:22 +00:00
Makefile.global.in Have libpgport link before libpq so that PG client applications are more 2005-03-25 18:18:41 +00:00
Makefile.shlib Fix out-of-order inclusion of -L switches from LDFLAGS on AIX and HPUX. 2005-12-03 20:16:50 +00:00
nls-global.mk More locale fixes for pg_ctl. 2004-06-01 03:32:42 +00:00
win32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00