Re: Add cassert-only checks against unlocked use of relations - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Add cassert-only checks against unlocked use of relations
Date
Msg-id 20131105220344.GM14819@awork2.anarazel.de
Whole thread Raw
In response to Re: Add cassert-only checks against unlocked use of relations  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Add cassert-only checks against unlocked use of relations  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2013-11-05 22:35:41 +0100, Andres Freund wrote:
> We could relatively easily optimize that to a constant factor by just
> iterating over the possible lockmodes. Should only take a couple more
> lines.

On that note, any chance you remember why you increased MAX_LOCKMODE by
2 to 10 back in 2001 although AccessExclusiveLock is 8? The relevant
commit is E4fe42dfbc3bafa0ea615239d716a6b37d67da253 .

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Add cassert-only checks against unlocked use of relations
Next
From: Peter Eisentraut
Date:
Subject: Re: UTF8 national character data type support WIP patch and list of open issues.