pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Suppress certain messages from postmaster log?
Date: Fri, 09 Nov 2001 16:49:32 -0500
Message-ID: <9shiud$23r7$1@news.tht.net> (raw)

We have a process which inserts a number of records into a very
large table, and which relies on the presence of a unique index to keep
it from inserting something that's already there.  Presently, the process
just does the insert for each row, and detects the constraint violation
to see if the insert failed.

However, this goes on all day, and the log is rapidly filling with

 2001-11-09 13:40:59 [2280]   ERROR:  Cannot insert a duplicate key 
into unique index ix_links_2

over and over.  Is there a way for the backend, or the process doing the
insert, to suppress this message?  It really doesn't inform us of
anything, and it's chewing up resources.

-- 
Jeff Boes                                             vox 616.226.9550
Database Engineer                                     fax 616.349.9076
Nexcerpt, Inc.                                      jboes@nexcerpt.com



Message-ID: <9shiud$23r7$1@news.tht.net>
Permalink:  ../9shiud$23r7$1@news.tht.net/
Also on:    postgresql.org/message-id/9shiud$23r7$1@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jboes@nexcerpt.com
  Subject: Re: Suppress certain messages from postmaster log?
  In-Reply-To: <9shiud$23r7$1@news.tht.net>
  References: <9shiud$23r7$1@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox