diff options
author | Stephen Frost <sfrost@snowman.net> | 2017-04-26 14:59:22 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2017-04-26 14:59:22 -0400 |
commit | 0c76c2463e8ab4cfd633ad8de259050e3f28b78f (patch) | |
tree | c813d3a3e755661cd47d882718a42bb339b08479 /src/backend/parser/parse_utilcmd.c | |
parent | 49da00677dc25d83be44372918e21a405863ace2 (diff) | |
download | postgresql-0c76c2463e8ab4cfd633ad8de259050e3f28b78f.tar.gz postgresql-0c76c2463e8ab4cfd633ad8de259050e3f28b78f.zip |
pg_get_partkeydef: return NULL for non-partitions
Our general rule for pg_get_X(oid) functions is to simply return NULL
when passed an invalid or inappropriate OID. Teach pg_get_partkeydef to
do this also, making it easier for users to use this function when
querying against tables with both partitions and non-partitions (such as
pg_class).
As a concrete example, this makes pg_dump's life a little easier.
Author: Amit Langote
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions