[NOVICE] COPY from temp table to main table insted of INSERT INTO

Поиск
Список
Период
Сортировка
От Stephen Froehlich
Тема [NOVICE] COPY from temp table to main table insted of INSERT INTO
Дата
Msg-id DM5PR06MB2891AE381C635F8453F80193E5AE0@DM5PR06MB2891.namprd06.prod.outlook.com
обсуждение исходный текст
Ответы Re: [NOVICE] COPY from temp table to main table insted of INSERT INTO  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-novice

I tend to do mass inserts to my database, but INSERT INTO is taking quite a while for 100k values.

 

What is the syntax for using the COPY command to copy a well formatted temp table to the “end” of the primary table?  I am having trouble understanding https://www.postgresql.org/docs/9.5/static/sql-copy.html.

 

Thanks,

Stephen

 

В списке pgsql-novice по дате отправления:

Предыдущее
От: Ed Behn
Дата:
Сообщение: Re: [NOVICE] where and how to store calculated data?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [NOVICE] COPY from temp table to main table insted of INSERT INTO