convert an Insert Into... select from... to use COPY ?

Поиск
Список
Период
Сортировка
От Kevin Kempter
Тема convert an Insert Into... select from... to use COPY ?
Дата
Msg-id 200907161414.52918.kevink@consistentstate.com
обсуждение исходный текст
Ответы Re: convert an Insert Into... select from... to use COPY ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Jan-Peter Seifert
Дата:
Сообщение: Re: initdb --encoding=LATIN1 fails on Windows
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Flush Shared Buffer Cache