Re: use window as field name in 8.4

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: use window as field name in 8.4
Дата
Msg-id 4C17C2EE.8080002@pinpointresearch.com
обсуждение исходный текст
Ответ на use window as field name in 8.4  ("Peter Lee" <peter@flairpackaging.com>)
Список pgsql-general
On 06/15/2010 07:58 AM, Peter Lee 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.

 

Peter


Does this happen using the 8.3 version of dump or the 8.4 version of dump. 8.4 added windowing functions which is likely the cause of your difficulty (i.e. a reserved word). The recommended procedure is to use the dump program from the newer version of PostgreSQL.

I also periodically review the reserved words at http://www.postgresql.org/docs/8.4/interactive/sql-keywords-appendix.html and (*ahem* try to) avoid using them as names for columns/tables/...

Cheers,
Steve

В списке pgsql-general по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Disk performance
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Is there a way to backup Postgres via SQL commands?