OSDN Git Service

Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a unique new
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Feb 2008 17:44:09 +0000 (17:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Feb 2008 17:44:09 +0000 (17:44 +0000)
commit5ce6829b73b28a3664268c8ba6dae3961c7ca23f
tree27bdcf145786acd09879b08b8fe6605ce36c03ad
parentf78611bba4b9d5a55429812014b7f256e72e5b5d
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.
src/backend/catalog/catalog.c