Philip Warner <[EMAIL PROTECTED]> writes: > Don't we have this ability? What about taking a RowShare lock on the > pg_class tuple whenever you read from the table; then requiring schema > updates take a RowExclusive lock on the pg_class tuple? How is that different from taking locks on the table itself? In any case, we don't have the ability to hold multiple classes of locks on individual tuples, AFAIK. UPDATE and SELECT FOR UPDATE use a different mechanism that involves setting fields in the header of the affected tuple. There's no room there for more than one kind of lock; what's worse, checking and waiting for that lock is far slower than normal lock-manager operations. (But on the plus side, you can be holding locks on any number of tuples without risking overflowing the lock manager table, and releasing the locks at commit takes no cycles.) regards, tom lane
- Re: [HACKERS] relation ### modified while in use Alex Pilosov
- Re: [HACKERS] relation ### modified while in use Alex Pilosov
- Re: [HACKERS] relation ### modified while in use Philip Warner
- Re: [HACKERS] relation ### modified while in use Tom Lane
- Re: [HACKERS] relation ### modified while in ... Philip Warner
- Re: [HACKERS] relation ### modified while in ... Hiroshi Inoue
- Re: [HACKERS] relation ### modified while... Philip Warner
- Re: [HACKERS] relation ### modified while... Tom Lane
- Re: [HACKERS] relation ### modified while... Philip Warner
- Re: [HACKERS] relation ### modified while... Tom Lane
- [HACKERS] Mailing list archives available... Krzysztof Kowalczyk
- Re: [HACKERS] Mailing list archives avail... The Hermit Hacker
- Re: [HACKERS] Mailing list archives avail... Vince Vielhaber
- Re: [HACKERS] Mailing list archives avail... The Hermit Hacker
- Re: [HACKERS] Mailing list archives avail... Vince Vielhaber
- Re: [HACKERS] relation ### modified while... Hiroshi Inoue
- Re: [HACKERS] relation ### modified while... Vadim Mikheev
- Re: [HACKERS] relation ### modified while... Hiroshi Inoue