pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Backup and Restore (pg_dump & pg_restore)
Date: Sun, 21 Apr 2019 15:13:23 -0700
Message-ID: <7c503445-2da0-db3c-5345-e814b6ce97f9@aklaver.com> (raw)
In-Reply-To: <89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com>
References: <BL0PR01MB518710A35F4FF2A127563A2A9B200@BL0PR01MB5187.prod.exchangelabs.com>
	<BL0PR01MB51872B41EDB099721B5606E59B210@BL0PR01MB5187.prod.exchangelabs.com>
	<d5e85379-8055-5604-d236-60fced2a7ee4@aklaver.com>
	<3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com>
	<286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com>
	<89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com>

On 4/21/19 2:20 PM, Ron wrote:

>> I see this sort of thing in monitoring systems e.g. environmental 
>> controls all the time. Things get flagged because they wander over set 
>> points intermittently. It is technically an error but unless they stay 
>> over the line it is just another data point.
> 
> Errors need to be fixed.  If the restore can proceed without harm, then 
> it's an Informational message.

That is a choice thing:

https://www.postgresql.org/docs/11/app-pgrestore.html

"
-e
--exit-on-error

     Exit if an error is encountered while sending SQL commands to the 
database. The default is to continue and to display a count of errors at 
the end of the restoration.
"



It is also one of those eye of the beholder things as evidenced by:

https://www.postgresql.org/docs/11/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT

Severity 	Usage 			syslog 		eventlog
...
ERROR 		Reports an error ... 	WARNING 	ERROR
...

Edited to keep on one line.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (9+ messages)

Message-ID: <7c503445-2da0-db3c-5345-e814b6ce97f9@aklaver.com>
Permalink:  ../7c503445-2da0-db3c-5345-e814b6ce97f9@aklaver.com/
Also on:    postgresql.org/message-id/7c503445-2da0-db3c-5345-e814b6ce97f9@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: Backup and Restore (pg_dump & pg_restore)
  In-Reply-To: <7c503445-2da0-db3c-5345-e814b6ce97f9@aklaver.com>
  References: <BL0PR01MB518710A35F4FF2A127563A2A9B200@BL0PR01MB5187.prod.exchangelabs.com> <BL0PR01MB51872B41EDB099721B5606E59B210@BL0PR01MB5187.prod.exchangelabs.com> <d5e85379-8055-5604-d236-60fced2a7ee4@aklaver.com> <3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com> <286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com> <89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com> <7c503445-2da0-db3c-5345-e814b6ce97f9@aklaver.com>

* 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