pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthew T. O'Connor <matthew@zeut.net>
Cc: Thomas Swan <tswan@idigx.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Jeff Boes <jboes@nexcerpt.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: pg_autovacuum crashes when query fails for temp
Date: Wed, 21 Apr 2004 00:00:33 -0400
Message-ID: <25712.1082520033@sss.pgh.pa.us> (raw)
In-Reply-To: <4085EFC3.9020109@zeut.net>
References: <200404201525.i3KFPp809934@candle.pha.pa.us>
	<40855DF0.3010300@idigx.com>
	<37398.192.154.91.225.1082485149.squirrel@192.154.91.225>
	<25435.1082518142@sss.pgh.pa.us>
	<4085EFC3.9020109@zeut.net>

"Matthew T. O'Connor" <matthew@zeut.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



view thread (16+ messages)  latest in thread

Message-ID: <25712.1082520033@sss.pgh.pa.us>
Permalink:  ../25712.1082520033@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25712.1082520033@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, matthew@zeut.net, tswan@idigx.com, pgman@candle.pha.pa.us, jboes@nexcerpt.com, pgsql-hackers@postgresql.org
  Subject: Re: pg_autovacuum crashes when query fails for temp
  In-Reply-To: <25712.1082520033@sss.pgh.pa.us>
  References: <200404201525.i3KFPp809934@candle.pha.pa.us> <40855DF0.3010300@idigx.com> <37398.192.154.91.225.1082485149.squirrel@192.154.91.225> <25435.1082518142@sss.pgh.pa.us> <4085EFC3.9020109@zeut.net> <25712.1082520033@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox