Re: [GENERAL] Question about COPY to/from

2006-02-27 Thread Emi Lu
Hi Stephen, We have millions of record and would like to insert into a table. I remebered people mentioned that COPY is the most effecient way to insert data, right? If not, which is it, pg_restore? By the way, does it have to be superuser to run copy to and from? COPY is what you

Re: [GENERAL] Question about COPY to/from

2006-02-27 Thread Tom Lane
Emi Lu [EMAIL PROTECTED] writes: However, running psql -d db -h ... from STDID, I believe we are forced to type the password through prompt command line. Since our data population task is through cronjob, is there a way, we can run COPY ... STDIN by explicitly specifying password so that

Re: [GENERAL] Question about COPY to/from

2006-02-21 Thread Scott Marlowe
On Mon, 2006-02-20 at 16:39, Emi Lu wrote: Hello, We have millions of record and would like to insert into a table. I remebered people mentioned that COPY is the most effecient way to insert data, right? If not, which is it, pg_restore? Take a look inside a pg_dump output and guess what

[GENERAL] Question about COPY to/from

2006-02-20 Thread Emi Lu
Hello, We have millions of record and would like to insert into a table. I remebered people mentioned that COPY is the most effecient way to insert data, right? If not, which is it, pg_restore? By the way, does it have to be superuser to run copy to and from? Thanks a lot, Emi

Re: [GENERAL] Question about COPY to/from

2006-02-20 Thread Stephen Frost
* Emi Lu ([EMAIL PROTECTED]) wrote: We have millions of record and would like to insert into a table. I remebered people mentioned that COPY is the most effecient way to insert data, right? If not, which is it, pg_restore? By the way, does it have to be superuser to run copy to and from?