Re: Fix overflow of bgwriter's request queue - Mailing list pgsql-patches

From Tom Lane
Subject Re: Fix overflow of bgwriter's request queue
Date
Msg-id 14418.1137190814@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fix overflow of bgwriter's request queue  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-patches
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> Maybe the take a copied list is safer. I got a little afraid of doing
> seqscan hash while doing HASH_ENTER at the same time. Do we have this kind
> of hash usage somewhere?

Sure, it's perfectly safe.  It's unspecified whether the scan will visit
such entries or not (because it might or might not already have passed
their hash bucket), but per above discussion we don't really care.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Fix overflow of bgwriter's request queue
Next
From: David Wheeler
Date:
Subject: Re: domain constraints and UNKNOWN params