Re: race condition in pgplsql call handler? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: race condition in pgplsql call handler?
Date
Msg-id 18626.1178891485@sss.pgh.pa.us
Whole thread Raw
In response to Re: race condition in pgplsql call handler?  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
List pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> Tom Lane wrote:
>> This is not a race condition because the backend is single-threaded.

> I see. Each backend has own function cache and use_count is for handle 
> recursion usage. Are my assumption correct?

Right.  Once a function cache entry is set up, it exists unchanged until
no longer in use, no matter what happens to the underlying pg_proc row.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: race condition in pgplsql call handler?
Next
From: "Simon Riggs"
Date:
Subject: Re: Allow use of immutable functions operating onconstants with constraint exclusion