Skip site navigation (1) Skip section navigation (2)

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:31:59
Message-ID: 20060201003159.ABF6F9DC861@postgresql.org (view raw or flat)
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.

Modified Files:
--------------
    pgsql/src/backend/main:
        main.c (r1.99 -> r1.100)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/main/main.c.diff?r1=1.99&r2=1.100)
    pgsql/src/backend/postmaster:
        postmaster.c (r1.479 -> r1.480)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c.diff?r1=1.479&r2=1.480)
    pgsql/src/include/postmaster:
        postmaster.h (r1.11 -> r1.12)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/postmaster/postmaster.h.diff?r1=1.11&r2=1.12)
    pgsql/src/port:
        path.c (r1.63 -> r1.64)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/path.c.diff?r1=1.63&r2=1.64)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2006-02-01 00:32:06
Subject: pgsql: Set progname early in the postmaster/postgres binary, rather than
Previous:From: Bruce MomjianDate: 2006-02-01 00:07:26
Subject: pgsql: Move items: > * Add SQL99 WITH clause to SELECT > * Add SQL99

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group