X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 57BD29DC803 for ; Fri, 3 Mar 2006 11:11:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66696-06 for ; Fri, 3 Mar 2006 11:11:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id BE9ED9DCB53 for ; Fri, 3 Mar 2006 11:11:29 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k23FBYc09104; Fri, 3 Mar 2006 10:11:34 -0500 (EST) From: Bruce Momjian Message-Id: <200603031511.k23FBYc09104@candle.pha.pa.us> Subject: Re: session variable and/or global variable in plpgsql In-Reply-To: <200603031148.07599.postgres@pivert.org> To: postgres@pivert.org Date: Fri, 3 Mar 2006 10:11:34 -0500 (EST) CC: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.427 required=5 tests=[AWL=-0.073, RAZOR2_CHECK=0.5] X-Spam-Score: 0.427 X-Spam-Level: X-Archive-Number: 200603/37 X-Sequence-Number: 20794 postgres@pivert.org wrote: > Hi, > > Is it possible to set a custom session variable and/or global variable in > plpgsql ? No. You can create a temporary or non-temporary table and select from that. -- Bruce Momjian http://candle.pha.pa.us SRA OSS, Inc. http://www.sraoss.com + If your life is a hard drive, Christ can be your backup. +