Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bd155c

Browse files
committed
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
1 parent d4c810d commit 0bd155c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4014,7 +4014,7 @@ find_typed_table_dependencies(Oid typeOid, const char *typeName, DropBehavior be
40144014

40154015
scan = heap_beginscan(classRel, SnapshotNow, 1, key);
40164016

4017-
if (HeapTupleIsValid(tuple = heap_getnext(scan, ForwardScanDirection)))
4017+
while ((tuple = heap_getnext(scan, ForwardScanDirection)) != NULL)
40184018
{
40194019
if (behavior == DROP_RESTRICT)
40204020
ereport(ERROR,

0 commit comments

Comments
 (0)