Content-Length: 268060 | pFad | http://github.com/postgrespro/postgres_cluster/commit/801386af62eac84c13feec5a643c120cf0ce33bd

90 Clarify old comment about qual_is_pushdown_safe's handling of subplans. · postgrespro/postgres_cluster@801386a · GitHub
Skip to content

Commit 801386a

Browse files
committed
Clarify old comment about qual_is_pushdown_safe's handling of subplans.
This comment glossed over the difference between initplans and subplans, but they are indeed different for our purposes here.
1 parent 3848d21 commit 801386a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/optimizer/path/allpaths.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,9 +2840,11 @@ targetIsInAllPartitionLists(TargetEntry *tle, Query *query)
28402840
*
28412841
* Conditions checked here:
28422842
*
2843-
* 1. The qual must not contain any subselects (mainly because I'm not sure
2844-
* it will work correctly: sublinks will already have been transformed into
2845-
* subplans in the qual, but not in the subquery).
2843+
* 1. The qual must not contain any SubPlans (mainly because I'm not sure
2844+
* it will work correctly: SubLinks will already have been transformed into
2845+
* SubPlans in the qual, but not in the subquery). Note that SubLinks that
2846+
* transform to initplans are safe, and will be accepted here because what
2847+
* we'll see in the qual is just a Param referencing the initplan output.
28462848
*
28472849
* 2. If unsafeVolatile is set, the qual must not contain any volatile
28482850
* functions.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/801386af62eac84c13feec5a643c120cf0ce33bd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy