Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f94HhTn09907 for ; Thu, 4 Oct 2001 13:43:29 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id f94HhMY01438; Thu, 4 Oct 2001 13:43:22 -0400 (EDT) From: Bruce Momjian Message-Id: <200110041743.f94HhMY01438@candle.pha.pa.us> Subject: Re: temporary views In-Reply-To: <3BBC8594.46955E26@lamer.pl> "from Tomasz Myrta at Oct 4, 2001 05:51:48 pm" To: Tomasz Myrta Date: Thu, 4 Oct 2001 13:43:22 -0400 (EDT) CC: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200110/56 X-Sequence-Number: 5011 > Hi > I have simple question: How to create view on a temporary table? > I need this, because pl/pgsql function returns data via temporary table. > > View created on a temporary table is useful only to the end of session. > Next time i create the same temp table i get > "Table xxx with oid xxx doesn't exist" Just name your temporary table the same name in every session. Why bother with a view. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026