Re: unsafe use of hash_search(... HASH_ENTER ...) - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: unsafe use of hash_search(... HASH_ENTER ...)
Date
Msg-id d88dtg$198f$1@news.hub.org
Whole thread Raw
In response to unsafe use of hash_search(... HASH_ENTER ...)  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Responses Re: unsafe use of hash_search(... HASH_ENTER ...)
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes
>
> This is not an issue except if the system might actually try to recover;
> which is not the case in the postmaster snippet you mention.
>

Yeah, you are right. I scratched elog/ereport(FATAL/PANIC), only found this
one might be a suspect:
In _hash_expandtable():
if (!_hash_try_getlock(rel, start_nblkno, HASH_EXCLUSIVE)) elog(PANIC, "could not get lock on supposedly new bucket");

Or maybe elog(PANIC) is a false alarm here?

Regards,
Qingqing






pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: pg_config --configure ...
Next
From: Michael Fuhr
Date:
Subject: Re: pg_config --configure ...