Skip site navigation (1) Skip section navigation (2)

Re: reindexdb hangs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: dx k9 <bitsandbytes88(at)hotmail(dot)com>, pgsql-admin(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: reindexdb hangs
Date: 2007-08-30 18:54:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-adminpgsql-hackers
Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> I'm not sure I follow.  Are you suggesting adding a new function,
> similar to pg_class_ownercheck, which additionally checks for temp-ness?

No, I was just suggesting adding the check for temp-ness in cluster()
and cluster_rel() where we do pg_class_ownercheck.  We already have the
rel open there and so it's cheap to do the temp-ness check.

I guess it's a question of which path you are more concerned about
making cheap, of course.  Your proposal was to filter before putting the
rel into the list at all, which certainly saves cycles when we reject a
remote temp table; but it adds cycles for all other tables.  I argue
that the remote-temp-table case is uncommon (else we'd have had many
more trouble reports) and therefore optimizing it at the cost of the
normal case isn't a win.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2007-08-30 18:58:48
Subject: Re: enum types and binary queries
Previous:From: Andrew DunstanDate: 2007-08-30 18:48:02
Subject: Re: enum types and binary queries

pgsql-admin by date

Next:From: Kevin KempterDate: 2007-08-30 20:42:43
Subject: rename a constraint?
Previous:From: Alvaro HerreraDate: 2007-08-30 16:41:51
Subject: Re: reindexdb hangs

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group