Re: pg_dump order of rows - Mailing list pgsql-general

From Marc Mamin
Subject Re: pg_dump order of rows
Date
Msg-id C4DAC901169B624F933534A26ED7DF31034BB9A0@JENMAIL01.ad.intershop.net
Whole thread Raw
In response to Re: pg_dump order of rows  (Jan Kesten <jan@dafuer.de>)
List 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 by date:

Previous
From: Hampus Wessman
Date:
Subject: Re: pg_dump order of rows
Next
From: paulo matadr
Date:
Subject: Cluster with LATIN1 and UTF-8