pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Grace <dgrace@wingsnw.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6005: ALTER ROLE ... VALID UNTIL 'infinity' crashes postmaster on a fresh install
Date: Wed, 4 May 2011 19:19:13 GMT
Message-ID: <201105041919.p44JJDtG099589@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6005
Logged by:          Daniel Grace
Email address:      dgrace@wingsnw.com
PostgreSQL version: 9.1-beta1
Operating system:   Win7 x64 (x86 postgres)
Description:        ALTER ROLE ... VALID UNTIL 'infinity' crashes postmaster
on a fresh install
Details: 

While trying to restore a database created under 9.1 alpha (created with
pg_dumpall):

CREATE ROLE postgres;
ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN
REPLICATION PASSWORD 'xxxx';
CREATE ROLE foo;
ALTER ROLE foo WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB NOLOGIN
NOREPLICATION VALID UNTIL 'infinity';

The final statement causes postmaster to crash.  I attempted it again
breaking each part of the ALTER ROLE into individual statements, e.g.
ALTER ROLE foo WITH NOSUPERUSER;
ALTER ROLE foo WITH INHERIT;
...

and it was the ALTER ROLE foo VALID UNTIL 'infinity' line causing the crash.



view thread (6+ messages)  latest in thread

Message-ID: <201105041919.p44JJDtG099589@wwwmaster.postgresql.org>
Permalink:  ../201105041919.p44JJDtG099589@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201105041919.p44JJDtG099589@wwwmaster.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dgrace@wingsnw.com
  Subject: Re: BUG #6005: ALTER ROLE ... VALID UNTIL 'infinity' crashes postmaster on a fresh install
  In-Reply-To: <201105041919.p44JJDtG099589@wwwmaster.postgresql.org>
  References: <201105041919.p44JJDtG099589@wwwmaster.postgresql.org>

* 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