diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-01-25 11:27:59 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-01-25 11:28:49 +0100 |
commit | 7c079d7417a8f2d4bf5144732e2f85117db9214f (patch) | |
tree | fccf611233c0019d18c0680d0b7a78513e937b2c /src/include/utils/partcache.h | |
parent | e3565fd61cee16414a682d2be0d44c112a80a30c (diff) |
Allow generalized expression syntax for partition bounds
Previously, only literals were allowed. This change allows general
expressions, including functions calls, which are evaluated at the
time the DDL command is executed.
Besides offering some more functionality, it simplifies the parser
structures and removes some inconsistencies in how the literals were
handled.
Author: Kyotaro Horiguchi, Tom Lane, Amit Langote
Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/9f88b5e0-6da2-5227-20d0-0d7012beaa1c@lab.ntt.co.jp/
Diffstat (limited to 'src/include/utils/partcache.h')
-rw-r--r-- | src/include/utils/partcache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/utils/partcache.h b/src/include/utils/partcache.h index d058a1d1948..7c2f973f68e 100644 --- a/src/include/utils/partcache.h +++ b/src/include/utils/partcache.h @@ -93,4 +93,10 @@ get_partition_col_typmod(PartitionKey key, int col) return key->parttypmod[col]; } +static inline Oid +get_partition_col_collation(PartitionKey key, int col) +{ + return key->partcollation[col]; +} + #endif /* PARTCACHE_H */ |