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