Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a unique new
OID or new relfilenode. If the existing OIDs are sufficiently densely
populated, this could take a long time (perhaps even be an infinite loop),
so it seems wise to allow the system to respond to a cancel interrupt here.
Per a gripe from Jacky Leng.
Backpatch as far as 8.1. Older versions just fail on OID collision,
instead of looping.
catalog.c (r1.72 -> r1.73)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2008-02-20 17:44:14|
|Subject: pgsql: Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a |
|Previous:||From: Alvaro Herrera||Date: 2008-02-20 16:48:40|
|Subject: Re: pgsql: Change error message to be able todifferentiate the two cases.|