aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/ruleutils.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-04-03 14:38:20 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-04-03 14:40:21 -0300
commitf56f8f8da6afd8523b4d5284e02a20ed2b33ef8d (patch)
treee5f59afa60601ff9c2e92d7746df6dba57b73c99 /src/include/utils/ruleutils.h
parent9155580fd5fc2a0cbb23376dfca7cd21f59c2c7b (diff)
downloadpostgresql-f56f8f8da6afd8523b4d5284e02a20ed2b33ef8d.tar.gz
postgresql-f56f8f8da6afd8523b4d5284e02a20ed2b33ef8d.zip
Support foreign keys that reference partitioned tables
Previously, while primary keys could be made on partitioned tables, it was not possible to define foreign keys that reference those primary keys. Now it is possible to do that. Author: Álvaro Herrera Reviewed-by: Amit Langote, Jesper Pedersen Discussion: https://postgr.es/m/20181102234158.735b3fevta63msbj@alvherre.pgsql
Diffstat (limited to 'src/include/utils/ruleutils.h')
-rw-r--r--src/include/utils/ruleutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/ruleutils.h b/src/include/utils/ruleutils.h
index 3ebc01e7147..7c49e9d0a83 100644
--- a/src/include/utils/ruleutils.h
+++ b/src/include/utils/ruleutils.h
@@ -22,6 +22,7 @@ extern char *pg_get_indexdef_string(Oid indexrelid);
extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty);
extern char *pg_get_partkeydef_columns(Oid relid, bool pretty);
+extern char *pg_get_partconstrdef_string(Oid partitionId, char *aliasname);
extern char *pg_get_constraintdef_command(Oid constraintId);
extern char *deparse_expression(Node *expr, List *dpcontext,