X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 13FD2D1B49B for ; Wed, 21 Apr 2004 01:00:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 63394-04 for ; Wed, 21 Apr 2004 01:00:38 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 17501D1B47D for ; Wed, 21 Apr 2004 01:00:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3L40XT2025713; Wed, 21 Apr 2004 00:00:33 -0400 (EDT) To: "Matthew T. O'Connor" Cc: Thomas Swan , Bruce Momjian , Jeff Boes , PostgreSQL-development Subject: Re: pg_autovacuum crashes when query fails for temp 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> Comments: In-reply-to "Matthew T. O'Connor" message dated "Tue, 20 Apr 2004 23:51:31 -0400" Date: Wed, 21 Apr 2004 00:00:33 -0400 Message-ID: <25712.1082520033@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/608 X-Sequence-Number: 52530 "Matthew T. O'Connor" 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