Re: pg_dump order of rows

Поиск
Список
Период
Сортировка
От Marc Mamin
Тема Re: pg_dump order of rows
Дата
Msg-id C4DAC901169B624F933534A26ED7DF31034BB9A0@JENMAIL01.ad.intershop.net
обсуждение исходный текст
Ответ на Re: pg_dump order of rows  (Jan Kesten <jan@dafuer.de>)
Список pgsql-general
> I'm not aware of any database where I can influence the on-disk order directly


Hello, 

You may want to export your main tables using COPY instead of pg_dump.

Doing this, you could disorder your tables, e.g. with hashtext:

COPY (select * from foo order by hashtext(some_col) )TO <file>

Getting a consistent dump of all your data may be an issue thought...

regards,

Marc Mamin




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

Предыдущее
От: Hampus Wessman
Дата:
Сообщение: Re: pg_dump order of rows
Следующее
От: paulo matadr
Дата:
Сообщение: Cluster with LATIN1 and UTF-8