On 8/9/16 6:14 PM, Thomas Munro wrote:
>> Could a couple of static variables be used to ensure multiple pin/unpin and
>> > attach/detach calls throw an assert() (or become a no-op if asserts are
>> > disabled)? It would be nice if we could protect users from this.
> The can't be static, they need to be in shared memory, because we also
> want to protect against two *different* backends pinning it.
Right, this would strictly protect from it happening within a single
backend. Perhaps it's pointless for pin/unpin, but it seems like it
would be a good thing to have for attach/detach.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532) mobile: 512-569-9461