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

Re: Import: I need help

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Quan Zongliang <quanzongliang(at)gmail(dot)com>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Import: I need help
Date: 2009-02-13 09:43:23
Message-ID: 937d27e10902130143l68caf6ew68f54daf26a8c167@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
On Fri, Feb 13, 2009 at 9:21 AM, Quan Zongliang <quanzongliang(at)gmail(dot)com> wrote:

> And more one question:
> I think the import work should get a new PGconn instance before it starts.
> in document: http://www.postgresql.org/docs/8.3/static/libpq-copy.html said:
> It is not possible to execute other SQL commands using the same connection
> while the COPY operation is in progress.
>
> How about the INSERT command?
> When them start work within a new transaction. It seems to fall into same situation.

Yes, - you should certainly use a new connection to avoid any conflict
with the main browser.  What would be really cool (later, not now)
would be to divide the workload amongst a user-defined number of
parallel connections.


-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

In response to

pgadmin-hackers by date

Next:From: Quan ZongliangDate: 2009-02-13 09:55:53
Subject: Patch: when select bit varying type, column length can be inputted
Previous:From: Quan ZongliangDate: 2009-02-13 09:36:15
Subject: Re: Import: I need help

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