mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
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
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user