Re: [SQL] best method to copy data across databases

2004-07-08 Thread ctrl
Many thanks Tony and Tom, since this was a "one time" process speed wasn't an issue... I just did a plain pg_dump with insert and explicit column names in the dump, then used vi to rename the columns and get rid of some of them... non very scientific but it worked :) cheers. [EMAIL PROTECTED] (T

[SQL] best method to copy data across databases

2004-07-08 Thread ctrl
I need to copy data that I have on a table in one Postgres database into another table, on a different database. The destination table is not identical with the source table so I need to do some mapping between the 2 tables. What would be the best (and quickest) way to transfer the data? (there are

Re: [SQL] best method to copy data across databases

2004-07-02 Thread Tom Lane
[EMAIL PROTECTED] (Tony Reina) writes: > If the 2 tables have different arrangements, then I'm not sure if > there is a quick way. The safest way is probably to do a pg_dump > --attribute-inserts. In recent versions (definitely 7.4, don't remember about 7.3), pg_dump will include a column list in

Re: [SQL] best method to copy data across databases

2004-07-02 Thread Tony Reina
[EMAIL PROTECTED] (ctrl) wrote in message news:<[EMAIL PROTECTED]>... > I need to copy data that I have on a table in one Postgres database > into another table, on a different database. The destination table is > not identical with the source table so I need to do some mapping > between the 2 tabl