pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Geoghegan <peter@2ndquadrant.com>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: tigran.mkrtchyan@desy.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6300: duplicate key value violates unique constraint
Date: Thu, 24 Nov 2011 23:55:12 +0200
Message-ID: <1322171712.20912.26.camel@vanquo.pezone.net> (raw)
In-Reply-To: <CA+TgmoaxHTszwbkA93tFpYW0BbadaXS=m3=A6NMWbxXWbVb6nQ@mail.gmail.com>
References: <201111181642.pAIGgaLY007885@wwwmaster.postgresql.org>
	<2e0d250ae01ece58a2c387f52f3121fc.squirrel@sq.gransy.com>
	<CAGue13rJxCjN1+jamnL4qBGopN=hP6nj4SG5tVgVhvTxz1UH4g@mail.gmail.com>
	<f6ebad3e6abf5376532df2784aec4bc6.squirrel@sq.gransy.com>
	<CA+TgmoZc2g-QP9p5=d=zhTzsRVYO+DF1TA6PT_SrJo4KjBLOJw@mail.gmail.com>
	<CAEYLb_XdgKec2rNBhbj4HxU5PZ4UBZ75fp-D92+4BLqhAkNSUA@mail.gmail.com>
	<CA+TgmoaxHTszwbkA93tFpYW0BbadaXS=m3=A6NMWbxXWbVb6nQ@mail.gmail.com>

On tor, 2011-11-24 at 11:14 -0500, Robert Haas wrote:
> So I would propose to steer clear of the word "internal", because the
> really scary errors typically are not internal to PostgreSQL at all.
> What I think we want to distinguish between is things that are
> PEBKAC/GIGO, and everything else.  In other words, if a particular
> error message can be caused by typing something stupid, unexpected,
> erroneous, or whatever into psql, it's just an error.  But if no
> input, however misguided, should ever cause that symptom, then it's, I
> don't know what the terminology should be, say, a "severe error". 

The current error levels are designed entirely in terms of the client
session behavior, that is,

warning -- things continue
error -- abort transaction
fatal -- abort session
panic -- abort everything

(more or less).  For a client issuing statements and reading responses,
these levels make perfect sense.

What we need is a labeling system in terms of server behavior, which is
completely separate from these client levels.  In principle, every
log-issuing statement (that is, ereport) should specify a client and a
server severity level.





view thread (14+ messages)  latest in thread

Message-ID: <1322171712.20912.26.camel@vanquo.pezone.net>
Permalink:  ../1322171712.20912.26.camel@vanquo.pezone.net/
Also on:    postgresql.org/message-id/1322171712.20912.26.camel@vanquo.pezone.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-bugs@postgresql.org
  Cc: peter_e@gmx.net, robertmhaas@gmail.com, peter@2ndquadrant.com, tv@fuzzy.cz, tigran.mkrtchyan@desy.de
  Subject: Re: BUG #6300: duplicate key value violates unique constraint
  In-Reply-To: <1322171712.20912.26.camel@vanquo.pezone.net>
  References: <201111181642.pAIGgaLY007885@wwwmaster.postgresql.org> <2e0d250ae01ece58a2c387f52f3121fc.squirrel@sq.gransy.com> <CAGue13rJxCjN1+jamnL4qBGopN=hP6nj4SG5tVgVhvTxz1UH4g@mail.gmail.com> <f6ebad3e6abf5376532df2784aec4bc6.squirrel@sq.gransy.com> <CA+TgmoZc2g-QP9p5=d=zhTzsRVYO+DF1TA6PT_SrJo4KjBLOJw@mail.gmail.com> <CAEYLb_XdgKec2rNBhbj4HxU5PZ4UBZ75fp-D92+4BLqhAkNSUA@mail.gmail.com> <CA+TgmoaxHTszwbkA93tFpYW0BbadaXS=m3=A6NMWbxXWbVb6nQ@mail.gmail.com> <1322171712.20912.26.camel@vanquo.pezone.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