summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2017-06-15 12:27:54 +0000
committerPavan Deolasee2017-06-15 12:27:54 +0000
commita9219636e83d8bfdfe38037151b2a81df8fffaf0 (patch)
tree32cd512491be4c21ff6af6250c50c48d1203561a
parentdc11a82c58da80f76feeaaf6cc31b196ba4ace4f (diff)
Show distribution information for partitioned tables too.
While using \d and associated commands in psql, we now check for partitioned tables and fetch their distribution information too, just as regular tables.
-rw-r--r--src/bin/psql/describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 69fc7e6ba0..6ada5ea4f4 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -2945,7 +2945,7 @@ describeOneTableDetails(const char *schemaname,
true);
#ifdef PGXC
/* print distribution information */
- if (verbose && tableinfo.relkind == 'r')
+ if (verbose && (tableinfo.relkind == 'r' || tableinfo.relkind == 'p'))
{
printfPQExpBuffer(&buf,
"SELECT CASE pclocatortype \n"