Re: use window as field name in 8.4

From: "Peter Lee" <peter(at)flairpackaging(dot)com>
To: "'Stephen Frost'" <sfrost(at)snowman(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: use window as field name in 8.4
Date: 2010-06-15 18:37:22
Message-ID: 001201cb0cb9$cc430b20$64c92160$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Well, I guess that's the best solution: change the field name.
I hope to find some alternative solution, but I know it won't be easy.

Thank you.

Peter

-----Original Message-----
* Stephen Frost (sfrost(at)snowman(dot)net)
The best solution would probably be to rename those fields in the 8.3
database, redo the dump, and then load it into 8.4. You could also use the
8.4 pg_dump to connect to and dump out the 8.3 database, but if you don't
change the identifiers, anything trying to use that database will fall over
if it doesn't quote the identifiers.

"window" in 8.4 is a reserved word, which it wasn't in 8.3.

Thanks,

Stephen

* Peter Lee (peter(at)flairpackaging(dot)com) wrote:
> I am trying to upgrade our postgresql from 8.3 to 8.4.
>
> I found the "window" as field name makes many errors during pg_restore.
>
> - like "item.window".
>
> Is there any way I can restore the dump file from 8.3 without errors.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message greigwise 2010-06-15 18:38:58 Re: GSS Authentication
Previous Message Stefan Kaltenbrunner 2010-06-15 18:36:22 Re: Problem serving one-click installer to Syria