Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YciZj-00012I-VI for pgsql-admin@arkaria.postgresql.org; Mon, 30 Mar 2015 22:54:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YciZj-00035R-Al for pgsql-admin@arkaria.postgresql.org; Mon, 30 Mar 2015 22:54:31 +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 1YciZi-00035F-GW for pgsql-admin@postgresql.org; Mon, 30 Mar 2015 22:54:30 +0000 Received: from mail.journyx.com ([209.163.206.41] helo=mail.int.journyx.com) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YciZe-00070b-ET for pgsql-admin@postgresql.org; Mon, 30 Mar 2015 22:54:29 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id 309013000BF; Mon, 30 Mar 2015 17:54:22 -0500 (CDT) Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id L9njhi_0EEfP; Mon, 30 Mar 2015 17:54:22 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id E4FDC301F55; Mon, 30 Mar 2015 17:54:21 -0500 (CDT) X-Amavis-Modified: Mail body modified (using disclaimer) - mail.int.journyx.com X-Virus-Scanned: amavisd-new at mail.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rWgayKBM4njP; Mon, 30 Mar 2015 17:54:21 -0500 (CDT) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id 9D3B03000BF; Mon, 30 Mar 2015 17:54:21 -0500 (CDT) MIME-Version: 1.0 X-Mailer: CloudMagic X-Mailer: Zimbra 8.6.0_GA_1153 (MobileSync - CloudMagic) X-Cm-Message-Id: 1427756060257264a61ef9b629534f7e83d4498bea88e4f05519d41c3eda1674966449 In-Reply-To: References: <33A4D5087BF0D44DA69C5EEF666BC1D74263DD2C@usprmbp01c> To: "David G. Johnston" Cc: "Rossi, Maria" , pgsql-admin@postgresql.org Subject: Re: Suppress 'duplicate key' at errorlog? Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <1114474783.754620.1427756060642.JavaMail.zimbra@zimbra.int.journyx.com> From: Scott Whitney Date: Mon, 30 Mar 2015 17:54:21 -0500 (CDT) Thread-Topic: Suppress 'duplicate key' at errorlog? Thread-Index: WWZwCMpOG1Gzb3fpd8WUdvnSSqa1ZQ== X-Pg-Spam-Score: -0.8 (/) 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

I =5Fdo=5F want to phone in on the whole duplicate key = issue.

Sure, this could be a race condition. It could be bad = programming. It could be a variety of things.

You ABSOLUTELY do not want to ignore that. Ignoring and = moving on will cause consistency problems. Catch it and add it to a log or = an email. Continue.

Do NOT silently ignore something trying to add a = duplicate key.


On Mon, = Mar 30, 2015 at 5:45 PM, David G. Johnston <david.g.johnston@gmail.com> = wrote:

On Mon, Mar 30, 2015 at 2:03 PM, Rossi, Maria <maria.rossi@us.pgds.= com> = wrote:

Hi,

 

Is there a way to suppress a =E2=80=98duplicate = key=E2=80=99 msg  from the errorlog=3F  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= .

 

Thanks.

 

Maria

 


Not in any way that doesn't also entail the =22but if there = is any other meaningful msgs out there, I would lose that too.=22 risk.=

Stop thinking about = the limited problem of removing the excessive messages and just learn how = to deal with high-volume log situations generally.  At worse you could= a simple log rotation and archive with a cleanup =22sed=22 script that = deletes these messages.  Suggest setting =22application=5Fname=22 in = order to be more targeted.

David J.=E2=80=8B