pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Unified logging system for command-line programs
Date: Thu, 03 Jan 2019 17:03:43 -0500
Message-ID: <4159.1546553023@sss.pgh.pa.us> (raw)
In-Reply-To: <d6e0e58c-e103-c287-b410-2c872067e020@2ndquadrant.com>
References: <6a609b43-4f57-7348-6480-bd022f924310@2ndquadrant.com>
	<21141.1546199123@sss.pgh.pa.us>
	<20181231155557.7mokxwg7fnvoxd4a@alap3.anarazel.de>
	<841dd9fb-3550-dce0-e9ff-8f64cac9f15d@2ndquadrant.com>
	<20190103180315.o4gh3id5quh5aebc@alap3.anarazel.de>
	<a7c07b9c-8aa4-f9bb-e9eb-30111b732645@2ndquadrant.com>
	<6174.1546549274@sss.pgh.pa.us>
	<d6e0e58c-e103-c287-b410-2c872067e020@2ndquadrant.com>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 03/01/2019 22:01, Tom Lane wrote:
>> while ereport(ERROR) has the
>> effect of writing a message and then calling exit(1).

> The problem is that in majority of cases the FRONTEND code, as it is
> written today, doesn't want to exit() after an error.

Right, so for that you'd use ereport(WARNING) or LOG or whatever.

We'd probably need a bit of care about which ereport levels produce
exactly what output, but I don't think that's insurmountable.  We
do not need all the backend-side message levels to exist for frontend.

			regards, tom lane




view thread (27+ messages)  latest in thread

Message-ID: <4159.1546553023@sss.pgh.pa.us>
Permalink:  ../4159.1546553023@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4159.1546553023@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, andres@anarazel.de
  Subject: Re: Unified logging system for command-line programs
  In-Reply-To: <4159.1546553023@sss.pgh.pa.us>

* 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