From: | John Coers <coers(at)intrinsity(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Copy |
Date: | 2001-05-01 22:05:33 |
Message-ID: | 3AEF332D.BE0C5F1@intrinsity.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-sql |
Tom Lane wrote:
>
> 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.
Do I need to do a PQconnectStart(),PQconnectPoll connection to make the server process
the COPY's in parallel, or does that just affect the client-side thread? How about a
PQconnectdb() and then PQsetnonblocking()?
Can I just do a PQconnectdb()?
I am unclear on how these different connection types affect the client threads vs. the server threads.
--
John Coers Intrinsity, Inc.
coers(at)intrinsity(dot)com Austin, Texas
From | Date | Subject | |
---|---|---|---|
Next Message | Robert.Farrugia | 2001-05-02 08:30:08 | Table Names Mappings |
Previous Message | Anuradha Ratnaweera | 2001-05-01 19:24:08 | Re: Re: disable wal |
From | Date | Subject | |
---|---|---|---|
Next Message | Ryan Mahoney | 2001-05-01 22:35:13 | Ideal hardware configuration for pgsql |
Previous Message | Hualin Yip | 2001-05-01 19:03:54 | how to start postgresql server ( or postmaster ) automatically |
From | Date | Subject | |
---|---|---|---|
Next Message | Martín Marqués | 2001-05-02 08:14:02 | delete with cascade |
Previous Message | Gerald Gutierrez | 2001-05-01 22:04:13 | INSERT slowdown ... |