Re: [GENERAL] COPY with default values won't work? - Mailing list pgsql-general

From Vadim Mikheev
Subject Re: [GENERAL] COPY with default values won't work?
Date
Msg-id 36F894C2.2F2F1128@krs.ru
Whole thread Raw
In response to COPY with default values won't work?  (Charles Tassell <ctassell@isn.net>)
List 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 by date:

Previous
From: Charles Tassell
Date:
Subject: Re: [GENERAL] COPY with default values won't work?
Next
From: "K.T."
Date:
Subject: Re: [GENERAL] COPY with default values won't work?