From: Pavan Deolasee Date: Thu, 15 Jun 2017 12:27:54 +0000 (+0530) Subject: Show distribution information for partitioned tables too. X-Git-Tag: XL_10_R1BETA1~272 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a9219636e83d8bfdfe38037151b2a81df8fffaf0;p=postgres-xl.git 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. --- 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"