Re: BUG #8811: pg_dumpall broken against pre-8.1 (resubmit 4) - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #8811: pg_dumpall broken against pre-8.1 (resubmit 4)
Date
Msg-id 20140113032541.GC15318@momjian.us
Whole thread Raw
In response to BUG #8811: pg_dumpall broken against pre-8.1 (resubmit 4)  (andrew@tao11.riddles.org.uk)
List pgsql-bugs
On Mon, Jan 13, 2014 at 03:09:00AM +0000, andrew@tao11.riddles.org.uk wrote:
> The following bug has been logged on the website:
>
> Bug reference:      8811
> Logged by:          Andrew Gierth
> Email address:      andrew@tao11.riddles.org.uk
> PostgreSQL version: 9.3.2
> Operating system:   any
> Description:
>
> Commit db00d837 changed a query in dumpRoles in pg_dumpall.c such that it
> now fails to run, affecting versions before 8.1.
>
> Specifically,
>
>   "rolname = current_user AS is_current_user"
>
> should have been "usename = ..." since there is no rolname column.
>
> Per a report on IRC.

Thanks.  Fixed and backpatched to 9.3.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

pgsql-bugs by date:

Previous
From: Martin Junek
Date:
Subject: Re: BUG #8771: Query execution plan broken after upgrade from 9.1.9
Next
From: sfrost@snowman.net
Date:
Subject: BUG #8812: Testing, testing