Re: pg_autovacuum crashes when query fails for temp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
Cc: Thomas Swan <tswan(at)idigx(dot)com>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Jeff Boes <jboes(at)nexcerpt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_autovacuum crashes when query fails for temp
Date: 2004-04-21 04:00:33
Message-ID: 25712.1082520033@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

"Matthew T. O'Connor" <matthew(at)zeut(dot)net> writes:
> Just to be sure, I can do this by avoiding anything found in the pg_temp
> schemea, or is there a better way? Is it possible that a user could or
> would put a non-temp table the pg_temp schemea?

The pg_temp_NN schemas are the temp objects, by definition and by
implementation. (Essentially, the reason a temp table is temp is that
its backend does "DROP SCHEMA pg_temp_NN" on exit.) See namespace.c,
particularly the isTempNamespace and isOtherTempNamespace functions, for
the gory details.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-04-21 04:05:26 Re: pg_autovacuum crashes when query fails for temp tables
Previous Message Matthew T. O'Connor 2004-04-21 03:51:31 Re: pg_autovacuum crashes when query fails for temp

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-04-21 04:05:26 Re: pg_autovacuum crashes when query fails for temp tables
Previous Message Matthew T. O'Connor 2004-04-21 03:51:31 Re: pg_autovacuum crashes when query fails for temp