Re: isTempNamespaceInUse() is incorrect with its handling ofMyBackendId - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: isTempNamespaceInUse() is incorrect with its handling ofMyBackendId
Date
Msg-id 20200113222319.GA1515@paquier.xyz
Whole thread Raw
In response to Re: isTempNamespaceInUse() is incorrect with its handling ofMyBackendId  (Julien Rouhaud <rjuju123@gmail.com>)
Responses Re: isTempNamespaceInUse() is incorrect with its handling ofMyBackendId
List pgsql-hackers
On Mon, Jan 13, 2020 at 02:56:13PM +0100, Julien Rouhaud wrote:
> Well, since isTempNamespaceInUse is for now only called by autovacuum, and
> shouldn't change soon, this really feels premature optimzation, so your
> original approach looks better.

Yes, I'd rather keep this routine in its simplest shape for now.  If
the optimization makes sense, though in most cases it won't because it
just helps sessions to detect faster their own temp schema, then let's
do it.  I'll let this patch aside for a couple of days to let others
comment on it, and if there are no objections, I'll commit the fix.
Thanks for the lookup!
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [Proposal] Global temporary tables
Next
From: Alvaro Herrera
Date:
Subject: Re: DROP OWNED CASCADE vs Temp tables