convert an Insert Into... select from... to use COPY ? - Mailing list pgsql-admin

From Kevin Kempter
Subject convert an Insert Into... select from... to use COPY ?
Date
Msg-id 200907161414.52918.kevink@consistentstate.com
Whole thread Raw
Responses Re: convert an Insert Into... select from... to use COPY ?
List pgsql-admin
Hi All;


I have an sql stmt that runs:

insert into x
( a.col1, a.col2, a.col3,b.col1,b.col2)
select blah,blah,blah
...
from giant_table a,
     even_bigger_table b
where.....

I wonder, could I convert this to use COPY into the table (x) instead of the
select stmt?



Thanks in advance

pgsql-admin by date:

Previous
From: Jan-Peter Seifert
Date:
Subject: Re: initdb --encoding=LATIN1 fails on Windows
Next
From: "Kevin Grittner"
Date:
Subject: Re: Flush Shared Buffer Cache