We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente1ca281 commit2dac382Copy full SHA for 2dac382
src/backend/commands/indexcmds.c
@@ -361,7 +361,9 @@ AlterIndex(Oid indexRelationId, IndexStmt *stmt)
361
relationName=quote_qualified_identifier(get_namespace_name(namespaceId),
362
get_rel_name(heapRelationId)),
363
newIndexPredicate=deparse_expression(stmt->whereClause,deparseCtx, false, false);
364
-oldIndexPredicate=deparse_expression((Node*)make_ands_explicit(indexInfo->ii_Predicate),deparseCtx, false, false);
+oldIndexPredicate=indexInfo->ii_Predicate
365
+?deparse_expression((Node*)make_ands_explicit(indexInfo->ii_Predicate),deparseCtx, false, false)
366
+:"true";
367
368
SPI_connect();
369