Re: Copy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: coers(at)intrinsity(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Copy
Date: 2001-04-30 22:16:06
Message-ID: 391.988668966@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-sql

John Coers <coers(at)intrinsity(dot)com> writes:
> Does a COPY FROM block? In case I am using the wrong terminology,
> what I need to know is if I have multiple clients performing COPY FROM...PQputline()
> using asynchronous connections, will I lose data?

No.

> Will the server simply execute them serially?

They'll be executed in parallel, just the same as if each client had
done a bunch of INSERTs wrapped in a BEGIN/END block. You'd only see
problems if clients inserted conflicting data (eg, identical keys in
a column with a UNIQUE index). You may care to read the documentation
about multi-version concurrency control and locking.

regards, tom lane

In response to

  • Copy at 2001-04-30 21:53:19 from John Coers

Responses

  • Re: Copy at 2001-05-01 15:49:11 from John Coers
  • Re: Copy at 2001-05-01 22:05:33 from John Coers

Browse pgsql-admin by date

  From Date Subject
Next Message Christian Anton 2001-05-01 04:09:44 URGENT HELP NEEDED
Previous Message John Coers 2001-04-30 21:53:19 Copy

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2001-04-30 22:17:29 Re: Problem with restore on upgrading to 7.1
Previous Message David Pieper 2001-04-30 22:14:04 Re: More src install probs...

Browse pgsql-sql by date

  From Date Subject
Next Message Anuradha Ratnaweera 2001-05-01 08:52:43 Re: Heres a good one...
Previous Message John Coers 2001-04-30 21:53:19 Copy