From: Stephen Frost <sfrost@snowman.net>
To: Jerry Sievers <gsievers19@comcast.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Pg-Upgrade standbys via rsync... and avoid sending UNlogged data?
Date: Mon, 25 Jul 2016 12:37:00 -0400
Message-ID: <20160725163700.GZ4028@tamriel.snowman.net> (raw)
In-Reply-To: <86d1m5b6bi.fsf@jerry.enova.com>
References: <86d1m5b6bi.fsf@jerry.enova.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
* Jerry Sievers (gsievers19@comcast.net) wrote:
> Has anyone found a clever way to $subject that doesn't involved
> calculating which are all of the files unnecessary to send and then
> running rsync with an exclude list?
>
> I'm pondering this right now.
Certainly an interesting issue to consider. I have to admit that I
hadn't considered unlogged tables when working out how to do the
hard-link-based approach.
> ISTM for each unlogged table/index/toast in pg_class where
> relpersistence='u'...
>
> rsync --exclude-from... (and exclude-from-file contains)
>
> */base/$dbid/$relfilenode
> */base/$dbid/$relfilenode.*
> */base/$dbid/$relfilenode_*
> ...
>
> The leading * will match the old/new data directoryes being sent to the
> standby.
You would have to address tablespaces too, if you have any.
> I have among others, a 5TB system w/about 40G of unlogged data.
Honestly, sending an extra 40G out of 5TB (we're talking less than 1%
here...) might be worth it to keep the process simple.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-admin@postgresql.org
Cc: sfrost@snowman.net, gsievers19@comcast.net
Subject: Re: Pg-Upgrade standbys via rsync... and avoid sending UNlogged data?
In-Reply-To: <20160725163700.GZ4028@tamriel.snowman.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