]> granicus.if.org Git - postgresql/commit
Set progname early in the postmaster/postgres binary, rather than doing
authorBruce Momjian <bruce@momjian.us>
Wed, 1 Feb 2006 00:47:03 +0000 (00:47 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 1 Feb 2006 00:47:03 +0000 (00:47 +0000)
commit5eb493ab980938aecf87feeda810183ef2b3c612
treecf1ddf7a92be3278b3cf84f88da2b3d1c13bd842
parent2426c62140545dc60d550a7e41356fa1d69775ca
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