From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Cc: Kaijiang Chen <chenkaijiang@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: pg_dump's results have quite different size
Date: Sat, 17 Dec 2016 11:30:31 +1300
Message-ID: <543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz> (raw)
In-Reply-To: <CAMkU=1yauFWZoXjnppBk0z53VBN-dyvUsHA5W-NKLKr1a07zYA@mail.gmail.com>
References: <CAAkGvS_VqsiqJsBOSA+Myxzez=pprR8+WjKEm3h=KhYAne7m5w@mail.gmail.com>
<CAAkGvS-qnQ8ZGJ0C-ttiym6QVpHyDogZa=_fPdUbSyKrt85zPA@mail.gmail.com>
<CACACo5R_fWpgtFgwYCXRK-U2WO=ueAdT3eZKYKXQHRfCStqhXw@mail.gmail.com>
<CAAkGvS_aTgMuqh7_VGB+U0q0yC6wYLzOTSREog=yyyQkmFbDPA@mail.gmail.com>
<CACACo5QRXyxKc6hm=mDNAQeS=bWa99u8odAGVv_mGEqNephPXQ@mail.gmail.com>
<3b9af4ce-edba-0006-43a0-31ce6d7624f5@catalyst.net.nz>
<CAMkU=1yauFWZoXjnppBk0z53VBN-dyvUsHA5W-NKLKr1a07zYA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 17/12/16 09:47, Jeff Janes wrote:
> On Thu, Dec 15, 2016 at 11:18 PM, Mark Kirkwood
> <mark.kirkwood@catalyst.net.nz <mailto:mark.kirkwood@catalyst.net.nz>>
> wrote:
>
> On 14/12/16 22:09, Oleksandr Shulgin wrote:
>
> On Wed, Dec 14, 2016 at 9:29 AM, Kaijiang Chen
> <chenkaijiang@gmail.com <mailto:chenkaijiang@gmail.com>
> <mailto:chenkaijiang@gmail.com
> <mailto:chenkaijiang@gmail.com>>> wrote:
>
> Yes. The pg_dump quits with the message:
>
> pg_dump: Dumping the contents of table "data_histories"
> failed:
> PQgetResult() failed.
> pg_dump: Error message from server: ERROR: canceling statement
> due to conflict with recovery
> DETAIL: User query might have needed to see row versions that
> must be removed.
> pg_dump: The command was: COPY public.data_histories (id,
> user_id,
> user_name, type, type_id, old_data, action, new_data,
> created_at,
> updated_at) TO stdout;
>
>
> Ah, then it's just that your backup script is broken: it
> should have reported the error.
>
> Please do not top-post.
>
>
> Oleksandr - how about a helpful response? E.g suggesting that
> maybe increasing max_standby_streaming_delay might help? Goddamn!
> folk asking for help deserve better than just being told 'it is
> broken dickhead'...
>
>
> The problem *is* that his backups are broken without him knowing it.
> Maybe increasing max_standby_streaming_delay is an answer, but maybe
> he would rather have occasional broken backups *which he knows about*
> then suffer the consequences of an increased
> max_standby_streaming_delay. Maybe hot_standby_feedback would be a
> better option, or maybe vacuum_defer_cleanup_age (but that is less
> likely).
>
> The only thing we actually know with reasonable certainty is that his
> backup script is broken, and that this is bad. Randomly changing
> settings so that the brokenness is still there but just less obvious
> is more dangerous than helpful.
>
It seems we know quite a lot more, evidenced by the error above. It also
seems clear that he wants his backups to work, not just report errors
surely? That the script should check return codes better (or at all)
sure, that seems to have been emphasized quite sufficiently.
regards
Mark
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: mark.kirkwood@catalyst.net.nz, jeff.janes@gmail.com, oleksandr.shulgin@zalando.de, chenkaijiang@gmail.com
Subject: Re: pg_dump's results have quite different size
In-Reply-To: <543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz>
References: <CAAkGvS_VqsiqJsBOSA+Myxzez=pprR8+WjKEm3h=KhYAne7m5w@mail.gmail.com> <CAAkGvS-qnQ8ZGJ0C-ttiym6QVpHyDogZa=_fPdUbSyKrt85zPA@mail.gmail.com> <CACACo5R_fWpgtFgwYCXRK-U2WO=ueAdT3eZKYKXQHRfCStqhXw@mail.gmail.com> <CAAkGvS_aTgMuqh7_VGB+U0q0yC6wYLzOTSREog=yyyQkmFbDPA@mail.gmail.com> <CACACo5QRXyxKc6hm=mDNAQeS=bWa99u8odAGVv_mGEqNephPXQ@mail.gmail.com> <3b9af4ce-edba-0006-43a0-31ce6d7624f5@catalyst.net.nz> <CAMkU=1yauFWZoXjnppBk0z53VBN-dyvUsHA5W-NKLKr1a07zYA@mail.gmail.com> <543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz>
* 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