Re: [BUGS] BUG #5083: Problem create account.

2009-10-03 Thread Robert Haas
On Sun, Sep 27, 2009 at 5:29 PM, Jesper wrote: > > The following bug has been logged online: > > Bug reference:      5083 > Logged by:          Jesper > Email address:      sol...@hotmail.com > PostgreSQL version: 8,3 > Operating system:   Vista > Description:        Problem create account. > Deta

Re: [BUGS] Assertion failure on reload of GUC_SUPERUSER_ONLY parms

2009-10-03 Thread Tom Lane
Simon Riggs writes: > It looks to me like the correct fix would be to use > GetUserIdAndContext() instead, though I would suggest inventing > GetUserIdIfAny() which would skip the assertion test for use in > superuser(). You are thinking at the wrong abstraction level. Even to ask if the user is

[BUGS] Assertion failure on reload of GUC_SUPERUSER_ONLY parms

2009-10-03 Thread Simon Riggs
TRAP: BadState("!(((bool) ((CurrentUserId) != ((Oid) 0", File: "miscinit.c", Line: 295) Gabriele Bartolini originally reported this to me as a bug in Hot Standby, though I have now been able to reproduce in CVS head. We were just unlucky enough to hit it while doing thorough HS testing. back