Re: Cannot use a standalone backend to VACUUM in "postgres""

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot use a standalone backend to VACUUM in "postgres""
Date: 2008-04-08 19:37:57
Message-ID: 20080408193757.GO9062@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Manuel Sugawara wrote:

> In each database executed:
>
> select relname, age(relfrozenxid) from pg_class where relnamespace = '10406'::oid;
>
> (note that 10406 is the oid of the pg_temp_1 namespace) none of them
> showed temp tables, Is this the correct way?, Any other idea?.

Hmm, nope -- take away the relnamespace check, because there is a
different namespace for each backend (pg_temp_2, pg_temp_3, etc). And
as far as I've seen, most leftover temp tables are on "high" temp
schemas (i.e. those belonging to backends that are only used when the
load is high).

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Amiel 2008-04-08 20:02:03 Re: More SSL crash woes
Previous Message Manuel Sugawara 2008-04-08 19:31:42 Re: Cannot use a standalone backend to VACUUM in "postgres""