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

From Tom Lane
Subject Re: unsafe use of hash_search(... HASH_ENTER ...)
Date
Msg-id 17687.1118035405@sss.pgh.pa.us
Whole thread Raw
In response to Re: unsafe use of hash_search(... HASH_ENTER ...)  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-hackers
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> I am afraid the problem are not limited to hash_search(). Any code snippet
> are not proteced by critical section like this:

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.
elog(ERROR) in the postmaster is fatal, and the use of FATAL rather than
ERROR in this bit of code is merely documentation.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: unsafe use of hash_search(... HASH_ENTER ...)
Next
From: Nithin Sontineni
Date:
Subject: need help