Minor Comment updates

Started by Simon Riggsover 21 years ago6 messagespatches
Jump to latest
#1Simon Riggs
simon@2ndQuadrant.com

Some minor updates to comments.

Attachments:

nodeResult.patchtext/x-patch; charset=UTF-8; name=nodeResult.patchDownload+9-9
comm.patchtext/x-patch; charset=UTF-8; name=comm.patchDownload+2-2
#2Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Simon Riggs (#1)
Re: Minor Comment updates

On Thu, Apr 21, 2005 at 11:15:48PM +0100, Simon Riggs wrote:

This one is wrong ... it really means EXPLAIN EXECUTE.

Index: explain.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/commands/explain.c,v
retrieving revision 1.132
diff -d -c -r1.132 explain.c
*** explain.c	16 Apr 2005 20:07:35 -0000	1.132
--- explain.c	21 Apr 2005 22:07:22 -0000
***************
*** 205,211 ****
*		EXPLAIN output
*
* This is exported because it's called back from prepare.c in the
!  * EXPLAIN EXECUTE case
*
* Note: the passed-in QueryDesc is freed when we're done with it
*/
--- 205,211 ----
*		EXPLAIN output
*
* This is exported because it's called back from prepare.c in the
!  * EXPLAIN ANALYZE case
*
* Note: the passed-in QueryDesc is freed when we're done with it
*/

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
Essentially, you're proposing Kevlar shoes as a solution for the problem
that you want to walk around carrying a loaded gun aimed at your foot.
(Tom Lane)

#3Simon Riggs
simon@2ndQuadrant.com
In reply to: Alvaro Herrera (#2)
Re: Minor Comment updates

On Thu, 2005-04-21 at 23:52 -0400, Alvaro Herrera wrote:

On Thu, Apr 21, 2005 at 11:15:48PM +0100, Simon Riggs wrote:

This one is wrong ... it really means EXPLAIN EXECUTE.

OK, yes that one is wrong - thought it was old syntax.

Best Regards, Simon Riggs

#4Simon Riggs
simon@2ndQuadrant.com
In reply to: Alvaro Herrera (#2)
Re: Minor Comment updates

On Thu, 2005-04-21 at 23:52 -0400, Alvaro Herrera wrote:

On Thu, Apr 21, 2005 at 11:15:48PM +0100, Simon Riggs wrote:

This one is wrong ... it really means EXPLAIN EXECUTE.

An updated patch, with changes to nodeAppend.c and nodeResult.c (only)

These are the only two files in /executor that have old QUEL comments in
to describe their behaviour, AFAICS.

Best Regards, Simon Riggs

Attachments:

comment2.patchtext/x-patch; charset=UTF-8; name=comment2.patchDownload+11-11
#5Neil Conway
neilc@samurai.com
In reply to: Simon Riggs (#4)
Re: Minor Comment updates

Simon Riggs wrote:

These are the only two files in /executor that have old QUEL comments in
to describe their behaviour, AFAICS.

Applied with some minor cleanups. Thanks for the patch.

-Neil

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Neil Conway (#5)
Re: Minor Comment updates

Neil Conway <neilc@samurai.com> writes:

Simon Riggs wrote:

These are the only two files in /executor that have old QUEL comments in
to describe their behaviour, AFAICS.

Applied with some minor cleanups. Thanks for the patch.

I restored the one example Simon removed, as I think it's a useful
example:

*** 10,15 ****
--- 10,20 ----
   *
   *				select 1 * 2
   *
+  *				insert into emp values ('mike', 15000)
+  *
+  *		(Remember that in an INSERT or UPDATE, we need a plan tree that
+  *		generates the new rows.)
+  *
   *		Result nodes are also used to optimise queries with constant
   *		qualifications (ie, quals that do not depend on the scanned data),
   *		such as:

regards, tom lane