pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Cannot dump 8.4.8 database using later versions
Date: Mon, 14 Nov 2011 18:13:40 -0500 (EST)
Message-ID: <201111142313.pAENDep01085@momjian.us> (raw)
In-Reply-To: <4EC1A01B.6000802@agliodbs.com>

Josh Berkus wrote:
> Severity: normal
> 
> Versions tested: 9.0.4 and 9.1.1
> 	Installed from packages on Ubuntu
> 
> Reproduceability: 100% on this server
> 	have not tried a test case yet
> 
> Steps:
> 
> 1. large running 8.4.8 PostgreSQL database
> 
> 2. /usr/lib/postgresql/9.1/bin/pg_dump -Fc -v -f test.dump dbname
> 
> 3. dumps all table etc definitions correctly.  then:
> 
> pg_dump: saving database definition
> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR:  NEW used in query that is
> not in a rule
> LINE 1: ...END AS min_value, cache_value, is_cycled, is_called from new
>                                                                     ^
> pg_dump: The command was: SELECT sequence_name, start_value, last_value,
> increment_by, CASE WHEN increment_by > 0 AND max_value =
> 9223372036854775807 THEN NULL      WHEN increment_by < 0 AND max_value =
> -1 THEN NULL      ELSE max_value END AS max_value, CASE WHEN
> increment_by > 0 AND min_value = 1 THEN NULL      WHEN increment_by < 0
> AND min_value = -9223372036854775807 THEN NULL      ELSE min_value END
> AS min_value, cache_value, is_cycled, is_called from new
> 
> (yes, that is the entire query, I checked the logs)
> 
> ... somehow the query to dump the sequences is getting mangled.  Any
> clue how?

Seems you have a sequence called "new";  seems we don't handle that
well.

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

  + It's impossible for everything to be true. +



view thread (11+ messages)  latest in thread

Message-ID: <201111142313.pAENDep01085@momjian.us>
Permalink:  ../201111142313.pAENDep01085@momjian.us/
Also on:    postgresql.org/message-id/201111142313.pAENDep01085@momjian.us

 · 

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: bruce@momjian.us, josh@agliodbs.com
  Subject: Re: Cannot dump 8.4.8 database using later versions
  In-Reply-To: <201111142313.pAENDep01085@momjian.us>
  References: <4EC1A01B.6000802@agliodbs.com> <201111142313.pAENDep01085@momjian.us>

* 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