X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 387B411F6223 for ; Tue, 11 Apr 2006 02:15:51 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.106 X-Spam-Level: X-Spam-Status: No, score=0.106 required=5 tests=[AWL=0.106] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92aQIqix1Ehm for ; Tue, 11 Apr 2006 02:15:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from a2s5.a2hosting.com (host-209-124-50-10.a2webhosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id E6CAF11F61D9 for ; Tue, 11 Apr 2006 02:15:48 -0300 (ADT) Received: from adsl-6-40-137.tys.bellsouth.net ([65.6.40.137] helo=[192.168.1.10]) by a2s5.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1FTBEC-0001zR-6H; Tue, 11 Apr 2006 01:15:48 -0400 In-Reply-To: <200604111117.04425.dave.bath@unix.net> References: <200604111117.04425.dave.bath@unix.net> Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Cc: pgsql-sql@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: global variables in plpgsql? Date: Tue, 11 Apr 2006 01:15:37 -0400 To: dave.bath@unix.net X-Mailer: Apple Mail (2.749.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Archive-Number: 200604/79 X-Sequence-Number: 24888 On Apr 10, 2006, at 9:17 PM, dave.bath@unix.net wrote: > So, a couple of questions.... > 1) Can you declare global values from plpgsql? > 2) If so, is there a way of avoiding namespace pollution? > (perhaps the equivalent to Oracle's use of plsql package > variables) plpgsql does not have global variables. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL