Re: tuple count and v3 functions in psql for COPY

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: tuple count and v3 functions in psql for COPY
Date: 2005-12-30 12:55:32
Message-ID: 20051230125532.GA519@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

I've just realized an exception in the sending data while using
PQsendCopyData(). Function's blocking behaviour is not guaranteed,
therefore a

if (PQisnonblocking())
PQsetnonblocking(conn, 0)

kind of phrase required before using PQsendCopyData(). But after a
small investigation, found that both psql and pg_dump runs in
blocking mode - without any PQsetnonblocking() call. Thus, AFAIC,
above phrase isn't necessary.

FYI. Just wanted to inform. Any comments are welcome.

Regards.

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2005-12-30 13:35:37 Re: [HACKERS] Online backup vs Continuous backup
Previous Message Bruce Momjian 2005-12-30 02:50:08 Re: [HACKERS] status of concurrent VACUUM patch ...