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

[SQL] help with Postgres function

2004-06-20 Thread ctrl
Hello. I'd appreciate any help with a function I'm writing. I have a simple table like this: CREATE TABLE websites ( id BIGSERIAL not null primary key, domain character varying(256) NOT NULL, last_fetch timestamp without time zone DEFAULT 'now()', crawl_status smallint not null DEFAULT 1 ); and m