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
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
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