Re: tuple count and v3 functions in psql for COPY - Mailing list pgsql-patches

From Volkan YAZICI
Subject Re: tuple count and v3 functions in psql for COPY
Date
Msg-id 20051230125532.GA519@alamut
Whole thread Raw
In response to Re: tuple count and v3 functions in psql for COPY  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
List 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.

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] status of concurrent VACUUM patch ...
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] Solaris cc compiler on amd: PostgreSQL does not have native