summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-12-25 15:44:15 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-12-25 15:44:15 -0500
commitbb4114a4e2c65f27931cc074214c051dba2876c3 (patch)
treef197bcc85c7479e20905e9f821893d5c49eb67b3 /src/include
parent42f74f49367bee1d3da28c4b383faec29364f320 (diff)
Allow whole-row Vars to be used in partitioning expressions.
In the wake of commit 5b9312378, there's no particular reason for this restriction (previously, it was problematic because of the implied rowtype reference). A simple constraint on a whole-row Var probably isn't that useful, but conceivably somebody would want to pass one to a function that extracts a partitioning key. Besides which, we're expending much more code to enforce the restriction than we save by having it, since the latter quantity is now zero. So drop the restriction. Amit Langote Discussion: https://postgr.es/m/CA+HiwqFUzjfj9HEsJtYWcr1SgQ_=iCAvQ=O2Sx6aQxoDu4OiHw@mail.gmail.com
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/partition.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/catalog/partition.h b/src/include/catalog/partition.h
index 5c3565ce366..33c372a8611 100644
--- a/src/include/catalog/partition.h
+++ b/src/include/catalog/partition.h
@@ -23,8 +23,7 @@ extern Oid get_partition_parent(Oid relid);
extern List *get_partition_ancestors(Oid relid);
extern Oid index_get_partition(Relation partition, Oid indexId);
extern List *map_partition_varattnos(List *expr, int fromrel_varno,
- Relation to_rel, Relation from_rel,
- bool *found_whole_row);
+ Relation to_rel, Relation from_rel);
extern bool has_partition_attrs(Relation rel, Bitmapset *attnums,
bool *used_in_expr);