Re: BUG #4901: Column name "window" breaks pg_dump/pg_restore - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4901: Column name "window" breaks pg_dump/pg_restore
Date
Msg-id 9776.1246809305@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4901: Column name "window" breaks pg_dump/pg_restore  ("Steve Purcell" <steve@sanityinc.com>)
Responses Re: BUG #4901: Column name "window" breaks pg_dump/pg_restore  (Steve Purcell <steve@sanityinc.com>)
List pgsql-bugs
"Steve Purcell" <steve@sanityinc.com> writes:
> The DB schema for openx (openx.org) contains a table with a column called
> "window", which now causes a syntax error if unquoted.  pg_dump doesn't
> quote the column, so pg_restore/psql fail on the pg_dump output.

This is one of the reasons why it's recommended that you use the later
version's pg_dump to perform a cross-version dump and restore.  8.4's
pg_dump knows that "window" is a reserved word, but 8.3's could hardly
be expected to.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Steve Purcell"
Date:
Subject: BUG #4901: Column name "window" breaks pg_dump/pg_restore
Next
From: Greg Stark
Date:
Subject: Re: Diffrent column ordering after dump/restore tables with INHERITS