X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 173C852831 for ; Fri, 29 Jul 2005 15:30:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08997-05 for ; Fri, 29 Jul 2005 18:29:55 +0000 (GMT) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by svr1.postgresql.org (Postfix) with ESMTP id B70BA52833 for ; Fri, 29 Jul 2005 15:29:53 -0300 (ADT) Received: from juju.arbash-meinel.com ([12.214.18.81]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20050729182954m9200g4ujse>; Fri, 29 Jul 2005 18:29:54 +0000 Received: by juju.arbash-meinel.com (Postfix, from userid 505) id ADDE556021; Fri, 29 Jul 2005 13:29:53 -0500 (CDT) Received: from [192.168.1.11] (liliana.arbash-meinel.com [192.168.1.11]) by juju.arbash-meinel.com (Postfix) with ESMTP id 51AF756006; Fri, 29 Jul 2005 13:29:49 -0500 (CDT) Message-ID: <42EA759A.60807@arbash-meinel.com> Date: Fri, 29 Jul 2005 13:29:46 -0500 From: John Arbash Meinel User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: josh@agliodbs.com Cc: Dennis Bjorklund , Matthew Schumacher , pgsql-performance@postgresql.org Subject: Re: Performance problems testing with Spamassassin 3.1.0 References: <200507291038.04230.josh@agliodbs.com> In-Reply-To: <200507291038.04230.josh@agliodbs.com> X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig541C882B4147AB26BC6EC16A" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.147 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200507/480 X-Sequence-Number: 13721 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig541C882B4147AB26BC6EC16A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Josh Berkus wrote: >Dennis, > > > >> EXCEPTION WHEN unique_violation THEN >> >> > >I seem to remember that catching an exception in a PL/pgSQL procedure was a >large performance cost. It'd be better to do UPDATE ... IF NOT FOUND. > > > Actually, he was doing an implicit UPDATE IF NOT FOUND in that he was doing: UPDATE IF found THEN return; INSERT EXCEPT ... So really, the exception should never be triggered. John =:-> --------------enig541C882B4147AB26BC6EC16A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC6nWcJdeBCYSNAAMRAvvHAJwPBkfZaj3d2C8AOyUIh1RoJlRCsQCeOFe7 1Dh31ZIEpB4BDhNBSQ3iIgw= =j02d -----END PGP SIGNATURE----- --------------enig541C882B4147AB26BC6EC16A--