Re: pg_dump ORDER BY

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: pg_dump ORDER BY
Дата
Msg-id 3A303478.9162BFC1@sayegh.de
обсуждение исходный текст
Ответ на Re: pg_dump ORDER BY  ("Joel Burton" <jburton@scw.org>)
Список pgsql-novice
Joel Burton wrote:

> SELECT * INTO foo_temp FROM foo ORDER BY primarykeycolumn;
>
> TRUNCATE foo;
>
> INSERT INTO foo SELECT * FROM foo_temp;
>
> This preserves triggers, ref.int., etc., and will put things physically
> in the right order. (The TRUNCATE won't call any delete triggers you
> have, but the INSERT will, so if you log/handle inserts in a special
> way, this might fill up your log/take some time.) )

That sounds interesting, but as i only need the dump sorted (not the
real data,
the order will be destroyed the next time we update) it would be enough
to
do the SELECT INTO.

cu
--
 Nabil Sayegh

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

Предыдущее
От: Aarmel
Дата:
Сообщение: Grant all
Следующее
От: GH
Дата:
Сообщение: Re: Grant all