On Fri, Feb 13, 2009 at 9:21 AM, Quan Zongliang <quanzongliang@gmail.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