Re: [ADMIN] reindexdb hangs - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [ADMIN] reindexdb hangs
Date
Msg-id 20070830164151.GS5872@alvh.no-ip.org
Whole thread Raw
In response to Re: [ADMIN] reindexdb hangs  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [ADMIN] reindexdb hangs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Tom Lane wrote:
> >> Yeah, an extra fetch of the pg_class row doesn't seem all that nice.
> >> I think you'd want to check it in approximately the same two places
> >> where pg_class_ownercheck() is applied (one for the 1-xact and one for
> >> the multi-xact path).
>
> > Actually, the 1-xact path does not need it, because the check is already
> > elsewhere.
>
> Yeah, but if you do it there it's one added comparison
> (isOtherTempNamespace is very cheap, and you can get the namespace
> cheaply from the already-open rel).  This way you need an extra syscache
> lookup because you are insisting on doing the check in a place where you
> don't have easy access to the pg_class row.  Doesn't seem better.

I'm not sure I follow.  Are you suggesting adding a new function,
similar to pg_class_ownercheck, which additionally checks for temp-ness?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-hackers by date:

Previous
From: Charlie Savage
Date:
Subject: Re: Some more msvc++ 8.2.4 build feedback
Next
From: Oleg Bartunov
Date:
Subject: Re: Why is there a tsquery data type?