]> granicus.if.org Git - postgresql/commitdiff
Fix erroneous error message for REINDEX SYSTEM.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Mar 2015 15:51:04 +0000 (11:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Mar 2015 15:51:04 +0000 (11:51 -0400)
Missed case in commit fe263d115a7dd16095b8b8f1e943aff2bb4574d2.

Sawada Masahiko

src/backend/tcop/utility.c

index daf532693c26d6476050290e1f5d77a6791c1abd..e2e718e216aa27701a2f8cb74cf82bf25f4e38cf 100644 (file)
@@ -753,8 +753,9 @@ standard_ProcessUtility(Node *parsetree,
                                                 * intended effect!
                                                 */
                                                PreventTransactionChain(isTopLevel,
-                                                                                               (stmt->kind == REINDEX_OBJECT_SCHEMA) ?
-                                                                                               "REINDEX SCHEMA" : "REINDEX DATABASE");
+                                                                                               (stmt->kind == REINDEX_OBJECT_SCHEMA) ? "REINDEX SCHEMA" :
+                                                                                               (stmt->kind == REINDEX_OBJECT_SYSTEM) ? "REINDEX SYSTEM" :
+                                                                                               "REINDEX DATABASE");
                                                ReindexObject(stmt->name, stmt->kind);
                                                break;
                                        default: