Re: [PATCH] Provide rowcount for utility SELECTs
Boszormenyi Zoltan <zb@cybertec.at>
From: Boszormenyi Zoltan <zb@cybertec.at>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@commandprompt.com>, Peter Eisentraut <peter_e@gmx.net>, Hans-Juergen Schoenig <hs@cybertec.at>, Pavel Stehule <pavel.stehule@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-02-08T10:53:34Z
Lists: pgsql-hackers
Attachments
- 6-pg85-provide-rowcount-for-utility-select-4-ctxdiff.patch (text/x-patch) patch
Robert Haas írta: > ... > OK, please change it. > New patch is attached with the discussed changes. >>> Someone who knows the overall structure of the code better than I do >>> will have to comment on whether there are any code paths to worry >>> about that do not go through PortalRun(). >>> >>> A general concern I have is that this what we're basically doing here >>> is handling the most common case in ProcessQuery() and then installing >>> fallback mechanisms to pick up any stragglers: but the fallback >>> mechanisms only guarantee that we'll add a number to the command tag, >>> not that it will be meaningful. Unfortunately, my limited imagination >>> can't quite figure out in what cases we'll get a SELECT command tag >>> back other than (1) plain old SELECT, (2) SELECT INTO, and (3) CTAS, >>> so I'm not sure what to go test. >>> > > Any thoughts on these issues, anyone? > > ...Robert > Best regards, Zoltán Böszörményi -- Bible has answers for everything. Proof: "But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil." (Matthew 5:37) - basics of digital technology. "May your kingdom come" - superficial description of plate tectonics ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH http://www.postgresql.at/