summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorRobert Haas2017-10-06 19:27:11 +0000
committerRobert Haas2017-10-06 19:28:07 +0000
commit45866c75507f0757de0da6e90c694a0dbe67d727 (patch)
tree0659294a1f18f48b7bd4426da60c297071074835 /src/include
parenta1c2c430d33e0945da234b025b78bd265c8bdfb5 (diff)
Copy information from the relcache instead of pointing to it.
We have the relations continuously locked, but not open, so relcache pointers are not guaranteed to be stable. Per buildfarm member prion. Ashutosh Bapat. I fixed a typo. Discussion: http://postgr.es/m/CAFjFpRcRBqoKLZSNmRsjKr81uEP=ennvqSQaXVCCBTXvJ2rW+Q@mail.gmail.com
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/partition.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/catalog/partition.h b/src/include/catalog/partition.h
index 454a940a23b..945ac0239d2 100644
--- a/src/include/catalog/partition.h
+++ b/src/include/catalog/partition.h
@@ -74,6 +74,8 @@ extern void RelationBuildPartitionDesc(Relation relation);
extern bool partition_bounds_equal(int partnatts, int16 *parttyplen,
bool *parttypbyval, PartitionBoundInfo b1,
PartitionBoundInfo b2);
+extern PartitionBoundInfo partition_bounds_copy(PartitionBoundInfo src,
+ PartitionKey key);
extern void check_new_partition_bound(char *relname, Relation parent,
PartitionBoundSpec *spec);