libpq and SPI - Mailing list pgsql-hackers

From Gerald L. Gay
Subject libpq and SPI
Date
Msg-id 01be01be607c$1cf40d40$9a028a8f@2isdt54.korea.army.mil
Whole thread Raw
Responses Re: [HACKERS] libpq and SPI  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,
   I have seen what I concider to be a bug in either the libpq library or
in the backend.  To see the effects, first, install the execq() function
from the SPI section of the Programmers Guide.  Then do this in psql:

template1=> select execq('create user fred', 1);
Backend sent D message without prior T
   At this point psql will hang.  I have a patch for libpq that fixes this
but I am not sure if this is the right place for it.  My questions are:  Is
it not reasonable to run "utility" queries from inside SPI?  Is the problem
in the client-side libpq interface or should something be done at the server
end?  If anyone is interested, I can explain why I want to do this.
   Any advice would be greatly appreciated.

Jerry




pgsql-hackers by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] copyObject() ?
Next
From: Tom Lane
Date:
Subject: Current tree is busted