Re: BUG #1502: hash_seq_search might return removed entry

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thomas" <thhal(at)mailblocks(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1502: hash_seq_search might return removed entry
Date: 2005-02-23 16:13:04
Message-ID: 19661.1109175184@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Thomas" <thhal(at)mailblocks(dot)com> writes:
> The hash_seq_search keeps track of what element that it should return next
> in a HASH_SEQ_STATUS struct when it peruses a bucket. Removing that element
> from the table won't change anything since the struct remains unaffected. It
> still holds onto that element and hence, will return it on next iteration.

This isn't a bug; it's the designed way for it to work. It's up to
callers to avoid causing a problem.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Hallgren 2005-02-23 16:28:08 Re: BUG #1502: hash_seq_search might return removed entry
Previous Message Tom Lane 2005-02-23 16:12:00 Re: BUG #1500: child dead