Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C30A765054C for ; Fri, 11 Jul 2008 14:08:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81395-10 for ; Fri, 11 Jul 2008 14:08:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 4B2326500EE for ; Fri, 11 Jul 2008 14:08:17 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-31-93.bk17-dsl.surnet.cl [190.95.31.93]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m6BHALgn006347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jul 2008 10:10:30 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D03B747C7E; Fri, 11 Jul 2008 13:08:03 -0400 (CLT) Date: Fri, 11 Jul 2008 13:08:03 -0400 From: Alvaro Herrera To: James Robinson Cc: pgsql-docs@postgresql.org Subject: Re: plpgsql, declare blocks, and '=' versus ':=' Message-ID: <20080711170803.GF4110@alvh.no-ip.org> References: <52962000-14ED-4BC2-8F5D-520F238FA78D@socialserve.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52962000-14ED-4BC2-8F5D-520F238FA78D@socialserve.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 11 Jul 2008 10:10:31 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/3 X-Sequence-Number: 4934 James Robinson wrote: > It seems that [ in 8.2.9 at least ], in a plpgsql declare block, > assignment to declared variable can use either the proper ':=' operator > or the unexpected and undocumented '=' operator. See following script. > The magic handling of '=' ought to get documented at least. > > [ plpgsql-declarations.html makes no mention of '=' token handling in > either 8.3 or 8.2. docs ] Yes. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.