Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-03-02 Thread Gustavo Vargas
ick Otten > Sent: Thursday, March 2, 2017 08:19 > To: Dinesh Chandra 12108 > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or > not ? > > This reminds me - I have had a case where the exit code for pg_dump w

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-03-02 Thread Dinesh Chandra 12108
<rottenwindf...@gmail.com>; Dinesh Chandra 12108 <dinesh.chan...@cyient.com> Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ? It'd be so nice to have some checks to guarantee the backup is trustworthy. Restoring th

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-03-02 Thread l...@laurent-hasson.com
Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ? This reminds me - I have had a case where the exit code for pg_dump was successful, but the backup was still corrupted on disk. By all means check the exit code, but I strong encourage a second validation

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-03-02 Thread Dinesh Chandra 12108
] Sent: 02 March, 2017 6:45 PM To: Dinesh Chandra 12108 <dinesh.chan...@cyient.com> Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ? This reminds me - I have had a case where the exit code for pg_dump was succ

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-03-02 Thread Rick Otten
gt;; Dinesh Chandra 12108 < > dinesh.chan...@cyient.com>; pgsql-performance@postgresql.org; > pgsql-performance-ow...@postgresql.org > Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully > or not ? > > On 2017-02-27 14:29, John Gorman wrote: > > Even

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-03-02 Thread Dinesh Chandra 12108
] Sent: 27 February, 2017 7:31 PM To: John Gorman <jgor...@eldocomp.com> Cc: Rick Otten <rottenwindf...@gmail.com>; Dinesh Chandra 12108 <dinesh.chan...@cyient.com>; pgsql-performance@postgresql.org; pgsql-performance-ow...@postgresql.org Subject: Re: [PERFORM] How Can I

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-02-27 Thread Dinesh Chandra 12108
ttenwindf...@gmail.com>; Dinesh Chandra 12108 <dinesh.chan...@cyient.com>; pgsql-performance@postgresql.org; pgsql-performance-ow...@postgresql.org Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ? On 2017-02-27 14:29, John Gorman wrote: > Even though i

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-02-27 Thread vinny
sql-performance-ow...@postgresql.org [mailto:pgsql-performance-ow...@postgresql.org] ON BEHALF OF Rick Otten SENT: Monday, February 27, 2017 3:36 AM TO: Dinesh Chandra 12108 CC: pgsql-performance@postgresql.org SUBJECT: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ? Altho

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-02-27 Thread John Gorman
org [mailto:pgsql-performance-ow...@postgresql.org] On Behalf Of Rick Otten Sent: Monday, February 27, 2017 3:36 AM To: Dinesh Chandra 12108 Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ? Although it doesn't really tell if the pg_d

Re: [PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-02-27 Thread Rick Otten
Although it doesn't really tell if the pg_dump was successful (you'll need to do a full restore to be sure), I generate an archive list. If that fails, the backup clearly wasn't successful, and if it succeeds, odds are pretty good that it worked: -- bash code snippet -- archiveList=`pg_restore

[PERFORM] How Can I check PostgreSQL backup is successfully or not ?

2017-02-27 Thread Dinesh Chandra 12108
Hi, We are taking daily full backup of PostgreSQL database using PG_DUMP which is automatic scheduled through Cronjobs. How can I check my yesterday backup is successfully or not? Is there any query or view by which I can check it? Regards, Dinesh Chandra |Database administrator