heroku-pg icon indicating copy to clipboard operation
heroku-pg copied to clipboard

Feature request: show % progress in cli upon heroku pg:copy command issues

Open bestori opened this issue 9 years ago • 5 comments

bestori avatar May 19 '16 10:05 bestori

I was able to add status messages from pg, but as far as I know there is no way to get the progress of a pg backup. Is that right @uhoh-itsmaciek?

jdx avatar Nov 29 '16 22:11 jdx

We could potentially check source size and target size in the backups backend and guesstimate progress with that, and then expose that in the CLI... I think it's potentially doable but it's a bit of a project.

msakrejda avatar Nov 29 '16 22:11 msakrejda

Could I somehow contribute to making this happen? Would gladly do so.

bestori avatar Dec 04 '16 17:12 bestori

no it would have to include a significant server component

jdx avatar Dec 04 '16 18:12 jdx

You know, thinking about this some more, I think I was wrong: I didn't account for MVCC bloat. Because of that, the source database can be much "larger" than the target (as in, pg_database_size can return wildly inflated values because it counts bloat). I can't think of a way to accurately estimate copy progress without more support from Postgres itself.

msakrejda avatar Dec 05 '16 16:12 msakrejda