Re: pg_locks "at-a-glance" view - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: pg_locks "at-a-glance" view
Date
Msg-id 20080619161143.GX5077@alvh.no-ip.org
Whole thread Raw
In response to Re: pg_locks "at-a-glance" view  (Decibel! <decibel@decibel.org>)
List pgsql-general
Decibel! escribió:

> Yeah, if you look at the code, locks are defined as numbers and I
> believe there's a very simple patter of what conflicts; a higher lock
> number conflicts with all those that are lower. So, it might be a lot
> cleaner to have a function that defines numbers for all the lock modes
> and just test to see if one lock is higher than another.

This is not always the case.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Decibel!
Date:
Subject: Re: pg_locks "at-a-glance" view
Next
From: "Brijesh Shrivastav"
Date:
Subject: Error compiling postgresql UDT in visual studio 2008