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
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 |
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... |
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 |