Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CB3A81337B66 for ; Tue, 9 Nov 2010 10:34:28 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 49465-10 for ; Tue, 9 Nov 2010 14:34:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 70CE91337B63 for ; Tue, 9 Nov 2010 10:34:21 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 3C2A0348023; Tue, 9 Nov 2010 06:34:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ehVJvH6VcTWC; Tue, 9 Nov 2010 06:34:19 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.28.71]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id C1ECD348022; Tue, 9 Nov 2010 06:34:18 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 20C166E9BC; Tue, 9 Nov 2010 11:34:15 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-docs Subject: Re: plpython docs should say 'plpy.Error' instead of ERROR From: Alvaro Herrera To: Marti Raudsepp In-reply-to: References: Date: Tue, 09 Nov 2010 11:34:15 -0300 Message-Id: <1289313237-sup-1899@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/22 X-Sequence-Number: 6220 Excerpts from Marti Raudsepp's message of mar nov 09 07:21:54 -0300 2010: > Currently the PL/Python documentation claims that: > "raise plpy.ERROR(msg) and raise plpy.FATAL(msg) are equivalent to > calling plpy.error and plpy.fatal, respectively" > > However, the actual names are Error and Fatal, not ERROR or FATAL > (Python is case-sensitive). Patch to fix documentation attached. Thanks, pushed to 9.0 and HEAD. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support