Re: [HACKERS] Hash twice

2013-01-14 Thread Simon Riggs
On 14 January 2013 19:12, Robert Haas wrote: > On Sat, Jan 12, 2013 at 11:39 AM, Simon Riggs wrote: >> Lock code says it calculates "hash value once and then pass around as >> needed". >> >> But it actually calculates it twice for new locks. >> >> Trivial patch attached to make it follow the com

Re: [HACKERS] Hash twice

2013-01-14 Thread Robert Haas
On Sat, Jan 12, 2013 at 11:39 AM, Simon Riggs wrote: > Lock code says it calculates "hash value once and then pass around as needed". > > But it actually calculates it twice for new locks. > > Trivial patch attached to make it follow the comments in > LockTagHashCode and save a few cycles. Hmm.

[HACKERS] Hash twice

2013-01-12 Thread Simon Riggs
Lock code says it calculates "hash value once and then pass around as needed". But it actually calculates it twice for new locks. Trivial patch attached to make it follow the comments in LockTagHashCode and save a few cycles. -- Simon Riggs http://www.2ndQuadrant.com/ Postgr