Re: PSQLException: ERROR: could not open relation with OID xxxx

From: "Gnanakumar" <gnanam(at)zoniac(dot)com>
To: "'Rosser Schwarz'" <rosser(dot)schwarz(at)gmail(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PSQLException: ERROR: could not open relation with OID xxxx
Date: 2011-03-14 07:50:48
Message-ID: 006201cbe21c$8a657e20$9f307a60$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> Although it's unrelated to your query about an exception being raised,
> a word of advice on temporary tables. (This may not be relevant to
> your situation, but it's no small source of pain in one of the systems
> I'm responsible for.) Significant use of temporary tables will cause
> commensurately significant bloat in your system catalogs. We have a
> system which, in the course of its "normal" operations, creates
> hundreds of temporary tables for processing, aggregation, analysis,
> and reporting.

Thank you very much for sharing your real-time experience.

Do you think that this "significantly bloated system catalogs" is caused
because of the old version 8.2.3 we're running? Will this be resolved in
latest PostgreSQL v9.0? BTW, what version of PostgreSQL are you handling?

Doc says: " Temporary tables are automatically dropped at the end of a
session, or optionally at the end of the current transaction (see ON COMMIT
below). Any indexes created on a temporary table are automatically temporary
as well."
If temporary tables and its indexes are automatically dropped at the end of
the session, why would it cause bloat in system catalogs? I hope you can
make me understand by sharing your real-time experience.

Again, thanks for your advice.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Gnanakumar 2011-03-14 08:09:55 Temporary table failed to drop after power failure
Previous Message Rosser Schwarz 2011-03-14 06:55:25 Re: PSQLException: ERROR: could not open relation with OID xxxx