X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 01731D1B470 for ; Thu, 22 Apr 2004 20:54:42 -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 82136-10 for ; Thu, 22 Apr 2004 20:54:43 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 8B1E1D1E12B for ; Thu, 22 Apr 2004 20:54:39 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i3MNsgF26021; Thu, 22 Apr 2004 19:54:42 -0400 (EDT) From: Bruce Momjian Message-Id: <200404222354.i3MNsgF26021@candle.pha.pa.us> Subject: Re: lifetime of temp schema versus compiled image of plpgsql proc In-Reply-To: To: Dennis Date: Thu, 22 Apr 2004 19:54:42 -0400 (EDT) Cc: postgres SQL X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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/243 X-Sequence-Number: 17618 Dennis wrote: > Bruce Momjian writes: > > > > > There is an FAQ item on this --- use EXECUTE. > > So I should be using EXECUTE for all access to the temp tables? ie inserts, > and selects (in this case). Should I use execute for the table creation? All access from plpgsql functions for temp tables should use EXECUTE, yea. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073