Re: pg_autovacuum crashes when query fails for temp - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_autovacuum crashes when query fails for temp
Date
Msg-id 25712.1082520033@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_autovacuum crashes when query fails for temp  ("Matthew T. O'Connor" <matthew@zeut.net>)
List pgsql-hackers
"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


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: pg_autovacuum crashes when query fails for temp tables
Next
From: Tom Lane
Date:
Subject: Re: pg_autovacuum crashes when query fails for temp tables