Re: 8.2.6 -> 8.1.11: syntax error at or near "OWNED BY"

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: 8.2.6 -> 8.1.11: syntax error at or near "OWNED BY"
Дата
Msg-id dcc563d10812100551yfea47c0j56b526a5ac5d9566@mail.gmail.com
обсуждение исходный текст
Ответ на 8.2.6 -> 8.1.11: syntax error at or near "OWNED BY"  ("Alexander Farber" <alexander.farber@gmail.com>)
Список pgsql-general
On Wed, Dec 10, 2008 at 6:41 AM, Alexander Farber
<alexander.farber@gmail.com> wrote:
> Hello,
>
> I've pg_dump'ed a database from PostgreSQL 8.2.6 / openSUSE 10.3
> and now trying to load it as a "postgres" user at 8.1.1 / CentOS 5.2
> and get numerous errors like:

That's not directly supported.  The other direction is.  You could try
dumpig the 8.2 database with the 8.1 dump, but it's not guaranteed to
work either.

> Does anybody please know what's wrong here
> (some new syntax introduced in 8.2.x)?

Yep.

> And what could I do to workaround it
> (I have to use CentOS and would like to use its native PostgreSQL 8.1)

Create the same basic thing by hand in 8.1 and dump it and see what
the syntax looks like.  Now write a script to transform your 8.2 dump
into that format.

OR upgrade your 8.1 machine to 8.2

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

Предыдущее
От: "Alexander Farber"
Дата:
Сообщение: 8.2.6 -> 8.1.11: syntax error at or near "OWNED BY"
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: 8.2.6 -> 8.1.11: syntax error at or near "OWNED BY"