Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YckSD-00061S-W9 for pgsql-admin@arkaria.postgresql.org; Tue, 31 Mar 2015 00:54:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YckSD-0007QO-69 for pgsql-admin@arkaria.postgresql.org; Tue, 31 Mar 2015 00:54:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YckSC-0007QE-5e for pgsql-admin@postgresql.org; Tue, 31 Mar 2015 00:54:52 +0000 Received: from resqmta-ch2-07v.sys.comcast.net ([2001:558:fe21:29:69:252:207:39]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YckS6-0000lo-IC for pgsql-admin@postgresql.org; Tue, 31 Mar 2015 00:54:50 +0000 Received: from resomta-ch2-20v.sys.comcast.net ([69.252.207.116]) by resqmta-ch2-07v.sys.comcast.net with comcast id A0ui1q0032XD5SV010uiWs; Tue, 31 Mar 2015 00:54:42 +0000 Received: from jerry.enova.com ([38.98.177.132]) by resomta-ch2-20v.sys.comcast.net with comcast id A0uU1q0022rmZlA010uW6e; Tue, 31 Mar 2015 00:54:40 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id B40A77401EE; Mon, 30 Mar 2015 19:54:27 -0500 (CDT) From: Jerry Sievers To: Scott Whitney Cc: "Scott Ribe" , "Rossi\, Maria" , pgsql-admin@postgresql.org Subject: Re: Suppress 'duplicate key' at errorlog? References: <33A4D5087BF0D44DA69C5EEF666BC1D74263DD2C@usprmbp01c> <1162433235.755302.1427760768118.JavaMail.zimbra@zimbra.int.journyx.com> Date: Mon, 30 Mar 2015 19:54:27 -0500 In-Reply-To: <1162433235.755302.1427760768118.JavaMail.zimbra@zimbra.int.journyx.com> (Scott Whitney's message of "Mon, 30 Mar 2015 19:12:48 -0500 (CDT)") Message-ID: <86oana3s1o.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1427763282; bh=FTRgHWI2SbL0M/EMKPhCc1Ciu9PqbAzOc7qMp93fpVM=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=s9I3eB4YKzFILpLVUIB1FZRiYDHUDuEPqMZuw5Dm92Qn7+1pp7hJkbVn8ZS6xp/il PbNi57uFs6x4at9FYH7tawIIuQu6PTg13u14WmDG4yzAQUyb+ec4wwRcSxaDOO4/G6 5Pr2yo65h5YXGHwGHV95dVEDOFEfk0cXAsagc2Xp4KOS8BL99LyUvGoS2yciL1o6mq V4869Dan4vP4Mx11DgbREC5AQ66cG9C5KSmfOwD3TcDbi60qqxnfctb2zHl7PBbaMt aifG1E9cRqOnd8J6LRJNYhpvnMXC+3LbyRhZvnU24ygiJPic5Bx9wml9jHpT6fAJNd XcB1rE+gnO6dw== X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Scott Whitney writes: > Am I the only one concerned about a product trying to duplicate a pkey? This is not usually the LAST step. It's early on in the logical process. You have to find and > solve the underlying cause. I've seen lazy developers use a try insert/update if fail to implement a poor man's upsert... a feature much sought after and only now being seriously developed for Postgres. So... whether or not it's a bug is application dependent. Yes I'd question a 3rd party about this if the product wasn't developed in house and/or fully open to code review to have them tell me "we did it that way on purpose" though rather than just declaring it a nuisance. FWIW > On Mon, Mar 30, 2015 at 6:17 PM, Scott Ribe wrote: > > On Mar 30, 2015, at 3:03 PM, Rossi, Maria wrote: > > > > Hi, > > > > Is there a way to suppress a ‘duplicate key’ msg from the errorlog? Due to a bug in a 3rd party application, this keeps on appearing and I am concerned that it > will fill up the filesystem. I can delete the old errorlog, but if there is any other meaningful msgs out there, I would lose that too. > > No way to turn off that specific error message, but you could filter them out of the log, being careful of course not to filter any messages which might be more > meaningful. You could also prevent the errors from being raised by using a trigger, but I don't like that idea very much at all. > > -- > Scott Ribe > scott_ribe@elevated-dev.com > http://www.elevated-dev.com/ > https://www.linkedin.com/in/scottribe/ > (303) 722-0567 voice > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin