From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera Munoz <alvherre@dcc.uchile.cl>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Current CVS tip segfaulting
Date: Fri, 30 Apr 2004 23:36:36 -0400
Message-ID: <10019.1083382596@sss.pgh.pa.us> (raw)
In-Reply-To: <20040424023021.GA30353@dcc.uchile.cl>
References: <20040423211034.GA15956@dcc.uchile.cl>
<200404232300.i3NN05k14802@candle.pha.pa.us>
<20040424003828.GB5259@dcc.uchile.cl>
<20040424023021.GA30353@dcc.uchile.cl>
Alvaro Herrera Munoz <alvherre@dcc.uchile.cl> writes:
> strace'ing the postmaster suggested me that the dbname string in
> utils/init/postinit.c, the InitPostgres function, is the culprit.
> In fact, if I apply the following patch to tcop/postgres.c the
> whole thing stops happening.
> else if (argc - optind == 1)
> ! dbname = argv[optind];
> ...
> else if (argc - optind == 1)
> ! dbname = pstrdup(argv[optind]);
Surely this is a red herring --- that code path does not even execute
except in the case of a standalone backend.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@dcc.uchile.cl, pgman@candle.pha.pa.us
Subject: Re: Current CVS tip segfaulting
In-Reply-To: <10019.1083382596@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox