Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-adminpgsql-generalpgsql-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?


> 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


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

pgsql-sql by date

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

pgsql-admin by date

Next:From: Christian AntonDate: 2001-05-01 04:09:44
Previous:From: John CoersDate: 2001-04-30 21:53:19
Subject: Copy

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group