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

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Charles Tassell <ctassell(at)isn(dot)net>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] COPY with default values won't work?
Date: 1999-03-24 07:31:14
Message-ID: 36F894C2.2F2F1128@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vadim Mikheev 1999-03-24 08:04:45 Re: [GENERAL] COPY with default values won't work?
Previous Message Charles Tassell 1999-03-24 05:48:22 Re: [GENERAL] COPY with default values won't work?