Andrew Dunstan <and...@dunslane.net> writes: > Note, too that the psql and safe_psql methods also pass the query via stdin.
Yeah. We need all of these to act the same, IMO. Recall that the previous patches that introduced the undef hack were changing callers of those routines, not poll_query_until. regards, tom lane