Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 18AFF1179B43 for ; Wed, 6 Jun 2012 12:08:20 -0300 (ADT) Received: from [76.14.161.106] (helo=newserver.jfcomputer.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ScHqO-00021Z-0G for pgsql-sql@postgresql.org; Wed, 06 Jun 2012 15:08:20 +0000 Received: from localhost (unknown [127.0.0.1]) by newserver.jfcomputer.com (Postfix) with ESMTP id 81C8F12248 for ; Wed, 6 Jun 2012 15:08:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at site Received: from newserver.jfcomputer.com ([127.0.0.1]) by localhost (linux-jfp8.site [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vUReOuYMLxqP for ; Wed, 6 Jun 2012 08:08:05 -0700 (PDT) Received: from [192.168.1.114] (unknown [192.168.1.254]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johnf@jfcomputer.com) by newserver.jfcomputer.com (Postfix) with ESMTPSA id A46A3555A for ; Wed, 6 Jun 2012 08:08:05 -0700 (PDT) Message-ID: <4FCF7255.8070002@jfcomputer.com> Date: Wed, 06 Jun 2012 08:08:05 -0700 From: John Fabiani Reply-To: johnf@jfcomputer.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: defaults in a function Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 76.14.161.106 (failed) X-Pg-Spam-Score: 1.6 (+) X-Archive-Number: 201206/23 X-Sequence-Number: 36677 Hi, In python when I create a method/function is set a default value for a passed value if one is not provided. def foo(self, event = None): In the above function if the second value is not passed a value of None is used as the default. Is this possible with plpgsql??? Johnf