pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Feature suggestions for backup and replication 2+ messages / 2 participants [nested] [flat]
* Feature suggestions for backup and replication @ 2022-11-07 22:03 da avory <dean.avory@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: da avory @ 2022-11-07 22:03 UTC (permalink / raw) To: pgsql-general@lists.postgresql.org Hi all, not sure whether this is the right list to ask. I do have two (small!?) feature suggestions, both regarding backup and replication, which might appeal to a wider audience. 1) it would be very great to have the option to add a timestamp to all lines of output of pg_dump and pg_restore. We regularly do dump/restores that take multiple days and this would help immensely to see bottlenecks, time distribution and get an overall feel for which steps take how long. 2) It would be equally great to be able to retrieve the actual value of recovery_min_apply_delay config parameter that is configured on a streaming client as a value on the primary (as a field in pg_stat_replication). Ideally in a consistent form, i.e. converted to seconds or interval. We currently have our ops team monitoring our streaming clients in various monitoring views and while we can of course see pending transfer and replay volume there is no way to see the intended apply_delay without storing it somewhere on the primary (where it will get inevitably out of sync with the used value). Many thanks Dean ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Feature suggestions for backup and replication @ 2022-11-08 13:02 Ron <ronljohnsonjr@gmail.com> parent: da avory <dean.avory@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Ron @ 2022-11-08 13:02 UTC (permalink / raw) To: pgsql-general@lists.postgresql.org On 11/7/22 16:03, da avory wrote: > Hi all, > > not sure whether this is the right list to ask. I do have two (small!?) > feature suggestions, both regarding backup and replication, which might > appeal to a wider audience. > > 1) it would be very great to have the option to add a timestamp to all > lines of output of pg_dump and pg_restore. We regularly do dump/restores > that take multiple days Are you using "--jobs=X --format=directory", or old school plain text dumps? > and this would help immensely to see bottlenecks, time distribution and > get an overall feel for which steps take how long. While timestamps would definitely be useful, the --verbose option with stdout *and* stderr redirected to a file plus some manual effort will answer your questions. > > 2) It would be equally great to be able to retrieve the actual value of > recovery_min_apply_delay config parameter that is configured on a > streaming client as a value on the primary (as a field in > pg_stat_replication). Ideally in a consistent form, i.e. converted to > seconds or interval. We currently have our ops team monitoring our > streaming clients in various monitoring views and while we can of course > see pending transfer and replay volume there is no way to see the intended > apply_delay without storing it somewhere on the primary (where it will get > inevitably out of sync with the used value). > > Many thanks > > Dean -- Angular momentum makes the world go 'round. ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-11-08 13:02 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-11-07 22:03 Feature suggestions for backup and replication da avory <dean.avory@gmail.com> 2022-11-08 13:02 ` Ron <ronljohnsonjr@gmail.com>
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