Re: TRAP during backend startup - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: TRAP during backend startup
Date
Msg-id 200404071853.i37IrMt02428@candle.pha.pa.us
Whole thread Raw
In response to Re: TRAP during backend startup  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Grant Finnemore <grantf@guruhut.co.za> writes:
> > After an installation from CVS tip, I start the postmaster with the
> > -d(anything) flag. The postmaster starts up normally. I then try to
> > connect using psql, and either a TRAP is triggered (not using -A 0)
> > or an invalid cache id is found (using -A 0)
> 
> The backtrace points the finger at Bruce's recent changes in guc.c:
> he is trying to call superuser() before the data is available.  Bruce,
> please fix or revert.

OK, I moved superuser() back down to the bottom of the if() statement
tree.  I had moved it up in the patch in hopes of reducing code
duplication, but obviously that didn't work.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: locale
Next
From: Tom Lane
Date:
Subject: Re: locale