From 0bd155cbf2543cdead70b6e6390e9260035e1468 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 8 Apr 2011 15:44:50 -0400 Subject: [PATCH] Fix bug in propagating ALTER TABLE actions to typed tables. We need to propagate such actions to all typed table children of a given type, not just the first one. Noah Misch --- src/backend/commands/tablecmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 4a97819b01..bd18db3b83 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -4014,7 +4014,7 @@ find_typed_table_dependencies(Oid typeOid, const char *typeName, DropBehavior be scan = heap_beginscan(classRel, SnapshotNow, 1, key); - if (HeapTupleIsValid(tuple = heap_getnext(scan, ForwardScanDirection))) + while ((tuple = heap_getnext(scan, ForwardScanDirection)) != NULL) { if (behavior == DROP_RESTRICT) ereport(ERROR, -- 2.40.0