Skip to content
Snippets Groups Projects
Commit 24475a76 authored by Tom Lane's avatar Tom Lane
Browse files

Put back example of using Result node to execute an INSERT.

parent cdf39c7b
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,11 @@
*
* 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:
......@@ -20,7 +25,7 @@
*
* Result (with 2 > 1 qual)
* /
* SeqScan (emp.all)
* SeqScan (emp.*)
*
* At runtime, the Result node evaluates the constant qual once,
* which is shown by EXPLAIN as a One-Time Filter. If it's
......@@ -33,7 +38,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/nodeResult.c,v 1.30 2005/04/24 11:46:21 neilc Exp $
* $PostgreSQL: pgsql/src/backend/executor/nodeResult.c,v 1.31 2005/04/24 15:32:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment