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 parent137c068 commit6779971Copy full SHA for 6779971
src/backend/commands/indexcmds.c
@@ -356,7 +356,9 @@ AlterIndex(Oid indexRelationId, IndexStmt *stmt)
356
relationName=quote_qualified_identifier(get_namespace_name(namespaceId),
357
get_rel_name(heapRelationId)),
358
newIndexPredicate=deparse_expression(stmt->whereClause,deparseCtx, false, false);
359
-oldIndexPredicate=deparse_expression((Node*)make_ands_explicit(indexInfo->ii_Predicate),deparseCtx, false, false);
+oldIndexPredicate=indexInfo->ii_Predicate
360
+?deparse_expression((Node*)make_ands_explicit(indexInfo->ii_Predicate),deparseCtx, false, false)
361
+:"true";
362
363
SPI_connect();
364