Re: [GENERAL] COPY with default values won't work?

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [GENERAL] COPY with default values won't work?
Дата
Msg-id 36F894C2.2F2F1128@krs.ru
обсуждение исходный текст
Ответ на COPY with default values won't work?  (Charles Tassell <ctassell@isn.net>)
Список pgsql-general
Charles Tassell wrote:
>
> @#$#!!  Any way to make COPY use default, or shove a lot of data in with a
> single INSERT query?  According to older messages in the mailing list, it
> is *possible*, but I can't get it to work.
>
> My problem is that I might be using this to put a few thousand entries in
> the db every night, and when I last attempted this using a few thousand
> insert statements, it was awfully slow (on the order of taking HOURS)

@#$#!!
-:)

Use BEGIN/END to insert a few thousand rowes in SINGLE transaction.

Vadim

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

Предыдущее
От: Charles Tassell
Дата:
Сообщение: Re: [GENERAL] COPY with default values won't work?
Следующее
От: "K.T."
Дата:
Сообщение: Re: [GENERAL] COPY with default values won't work?