Re: autovacuum: found orphan temp table

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: Nicolau Roca <nicolau(dot)roca(at)uib(dot)cat>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: autovacuum: found orphan temp table
Date: 2013-06-25 17:26:56
Message-ID: CA+h6AhiGroP1tsX3vxJtCa3q7jxQot1w_9vu7h+xndDr=V93vA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 25, 2013 at 6:43 PM, Nicolau Roca <nicolau(dot)roca(at)uib(dot)cat> wrote:

> Hi,
> after a server crash the following messages appear in the log file every
> minute:
>

> 2013-06-25 15:02:15 CEST [::18264:1:] LOG: autovacuum: found orphan temp
> table "pg_temp_47"."est_backup_ids_temp" in database "estudis1314"
> 2013-06-25 15:02:15 CEST [::18264:2:] LOG: autovacuum: found orphan temp
> table "pg_temp_47"."est_backup_files_temp" in database "estudis1314"
>
> I read a suggestion in the list pgsql-hackers (Message ID
> 48F4599D(dot)7010601(at)enterprisedb(dot)com<http://www.postgresql.org/message-id/48F4599D.7010601@enterprisedb.com>)
> about just dropping the pg_temp_x schema. However, no such schema exists:
>
> You can query to find those schemas :

select relname,nspname from pg_class join pg_namespace on (relnamespace=
pg_namespace.oid) where pg_is_other_temp_schema(relnamespace);

On finding you can drop those schemas,if you want to get rid of the
messages, just do DROP SCHEMA pg_temp_NNN CASCADE;
---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message kathyn 2013-06-25 17:31:40 Re: Data Minning and analisys tool for Postgres?
Previous Message Bosco Rama 2013-06-25 17:22:35 Re: autovacuum: found orphan temp table