pgsql: Set progname early in the postmaster/postgres binary, rather than

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Set progname early in the postmaster/postgres binary, rather than
Date: 2006-02-01 00:32:06
Message-ID: 20060201003206.B58B29DCAA9@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/main:
main.c (r1.96.2.2 -> r1.96.2.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/main/main.c.diff?r1=1.96.2.2&r2=1.96.2.3)
pgsql/src/backend/postmaster:
postmaster.c (r1.475.2.2 -> r1.475.2.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.475.2.2&r2=1.475.2.3)
pgsql/src/include/postmaster:
postmaster.h (r1.11 -> r1.11.2.1)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/postmaster/postmaster.h.diff?r1=1.11&r2=1.11.2.1)
pgsql/src/port:
path.c (r1.61.2.2 -> r1.61.2.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/path.c.diff?r1=1.61.2.2&r2=1.61.2.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2006-02-01 00:47:03 pgsql: Set progname early in the postmaster/postgres binary, rather than
Previous Message Bruce Momjian 2006-02-01 00:31:59 pgsql: Set progname early in the postmaster/postgres binary, rather than