Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit947eb97

Browse files
author
Neil Conway
committed
Update some comments to use SQL examples rather than QUEL. From Simon
Riggs.
1 parenta7f2a78 commit947eb97

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

‎src/backend/executor/nodeAppend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeAppend.c,v 1.62 2004/12/31 21:59:45 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeAppend.c,v 1.63 2005/04/24 11:46:20 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -43,7 +43,7 @@
4343
*and student-emp inherits from student and employee, the
4444
*query:
4545
*
46-
*retrieve (e.name) frome inperson*
46+
*selectname from person
4747
*
4848
*generates the plan:
4949
*

‎src/backend/executor/nodeResult.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,32 @@
88
*Result nodes are used in queries where no relations are scanned.
99
*Examples of such queries are:
1010
*
11-
*retrieve (x = 1)
12-
*and
13-
*append emp (name = "mike", salary = 15000)
11+
*select 1 * 2
1412
*
1513
*Result nodes are also used to optimise queries with constant
1614
*qualifications (ie, quals that do not depend on the scanned data),
1715
*such as:
1816
*
19-
*retrieve (emp.all) where 2 > 1
17+
*select * fromemp where 2 > 1
2018
*
2119
*In this case, the plan generated is
2220
*
2321
*Result(with 2 > 1 qual)
2422
*/
2523
* SeqScan (emp.all)
2624
*
27-
*At runtime, the Result node evaluates the constant qual once.
28-
*If it's false, we can return an empty result set without running
29-
*the controlled plan at all. If it's true, we run the controlled
25+
*At runtime, the Result node evaluates the constant qual once,
26+
*which is shown by EXPLAIN as a One-Time Filter. If it's
27+
*false, we can return an empty result set without running the
28+
*controlled plan at all. If it's true, we run the controlled
3029
*plan normally and pass back the results.
3130
*
3231
*
3332
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
3433
* Portions Copyright (c) 1994, Regents of the University of California
3534
*
3635
* IDENTIFICATION
37-
* $PostgreSQL: pgsql/src/backend/executor/nodeResult.c,v 1.29 2004/12/31 21:59:45 pgsql Exp $
36+
* $PostgreSQL: pgsql/src/backend/executor/nodeResult.c,v 1.30 2005/04/24 11:46:21 neilc Exp $
3837
*
3938
*-------------------------------------------------------------------------
4039
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp