[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pgsql-hackers
Subject:    Re: [HACKERS] remembering locks and dynahash.c
From:       Tom Lane <tgl () sss ! pgh ! pa ! us>
Date:       2012-05-31 6:06:43
Message-ID: 29637.1338444403 () sss ! pgh ! pa ! us
[Download RAW message or body]

Jeff Janes <jeff.janes@gmail.com> writes:
> I am working on making resource owner remember a limited number of
> locks, so it can reassign them more efficiently.

Check, per previous discussion.

> Currently I'm having resowner.c remember the LOCALLOCKTAG, because I
> thought that that was the only handle I could use.  But now I'm
> wondering if I should remember the LOCALLOCK * instead.

I was envisioning LOCALLOCK *.  dynahash will never move an existing
entry, and if the entry can be deleted while the resowner still holds a
pointer to it then you've got a logic bug.

			regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic