Re: [HACKERS] problem with PQsendQuery/PQgetResult and COPY FROM statement

2006-05-24 Thread max . poletto
Thanks for all your replies, but I must clarify some things. First, note that what I posted is just a small example that reproduces behavior that appears incorrect. The real code is a C++ wrapper around libpq that supports non-blocking queries and reuses open connections. Volkan and Martijn: I k

[HACKERS] problem with PQsendQuery/PQgetResult and COPY FROM statement

2006-05-21 Thread max . poletto
ust memory and crash. The postgres version is 8.1.3. I can reproduce the problem in about 50 lines of C. I include below (1) the code, (2) a psql dump of the table in question, (3) the code's output. I'd appreciate any insight or suggestions you may have.