Re: Proposal: String key space for advisory locks - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal: String key space for advisory locks
Date
Msg-id 20150.1256566073@sss.pgh.pa.us
Whole thread Raw
In response to Proposal: String key space for advisory locks  (Christophe Pettus <xof@thebuild.com>)
List pgsql-hackers
Christophe Pettus <xof@thebuild.com> writes:
> I'd like to propose a potential patch, and wanted to get preliminary  
> feedback on it before I started looking into the design.

> Summary:    Add a string key space to the advisory lock functionality.

Your chances of making the LOCKTAG struct bigger for this are nonexistent.
I concur with Itagaki-san's suggestion that a hash of your strings ought
to be a fine solution ... and you could use it today.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Parsing config files in a directory
Next
From: Tom Lane
Date:
Subject: Re: Parsing config files in a directory