Fix to print the name of the foreign server when the table being
authorShigeru Hanada <[email protected]>
Thu, 14 Oct 2010 07:05:53 +0000 (16:05 +0900)
committerShigeru Hanada <[email protected]>
Thu, 14 Oct 2010 07:05:53 +0000 (16:05 +0900)
described was a foreign table.

src/bin/psql/describe.c

index 19d4a9a3411858d782dd39b5a65aa1cc0ec2fc35..87e15cb0e08d2669903fad15a2ba547168c04e7f 100644 (file)
@@ -1953,7 +1953,7 @@ describeOneTableDetails(const char *schemaname,
    /*
     * Finish printing the footer information about a table.
     */
-   if (tableinfo.relkind == 'r')
+   if (tableinfo.relkind == 'r' || tableinfo.relkind == 'f')
    {
        PGresult   *result;
        int         tuples;