Re: [GENERAL] dump order by

2012-12-24 Thread Jose Soares
I'm sorry my first example was incomplete I need to migrate data from postgresql to oracle thus I have to use dump --column-inserts instead of copy to have an output like this but order by pk: INSERT INTO test (id, note, id_father) VALUES (6, 'Homer Simpson ', 5); INSERT INTO test (id, note, id_f

Re: [GENERAL] dump order by

2012-12-22 Thread Adrian Klaver
On 12/22/2012 09:29 AM, jo wrote: Hi all, I would like to know if it is possible to dump a table ordered by its primary key. Take a look at the this test table... \d test Table "public.test" Column| Type | Modifiers ---+-+---

Re: [GENERAL] dump order by

2012-12-22 Thread salah jubeh
Hello, Did you try to set the constraints as deferrable i.e. begin; set constraints all deferred; ... commit; Also, you can set this by forign key , have a look on http://www.postgresql.org/docs/9.0/static/sql-createtable.html Regards From: jo To: p