]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Set progname early in the postmaster/postgres binary, rather than doing
authorBruce Momjian <bruce@momjian.us>
Wed, 1 Feb 2006 00:31:59 +0000 (00:31 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 1 Feb 2006 00:31:59 +0000 (00:31 +0000)
commit62a142036ba59c8167ab4539a414e56ba4c39faa
tree5c0ebf00e2e9a5569db8ea3a1985224fe7f796d0
parentc6ef3264bebd442ae19a850abd774ed4bde1722f
Set progname early in the postmaster/postgres binary, rather than doing
it later.  This fixes a problem where EXEC_BACKEND didn't have progname
set, causing a segfault if log_min_messages was set below debug2 and our
own snprintf.c was being used.

Also alway strdup() progname.

Backpatch to 8.1.X and 8.0.X.
src/backend/main/main.c
src/backend/postmaster/postmaster.c
src/include/postmaster/postmaster.h
src/port/path.c