Re: Scriptable way to validate a pg_dump restore ?

From: Laura Smith <n5d9xq3ti233xiyif2vp(at)protonmail(dot)ch>
To: postgre <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Scriptable way to validate a pg_dump restore ?
Date: 2024-01-29 19:20:35
Message-ID: hETOeUT-Xd_9JxIN8d7RnBxA5eINh31gQwB-x8a5KcYx-_DHvB-dU0i_n3jqYnSAblUQc3WeMzyisJ6WXsfk9UhRRkNFRKo_tH1JDlH6h9o=@protonmail.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Monday, 29 January 2024 at 09:06, Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:

>
> That's kinda like being asked to prove that rocks always fall when you drop them. Either you trust physics, because physics has always worked, or you must watch every rock, because next time it might not fall. The analogy is slightly flawed, since we always check the pg_dump and pg_restore return codes, since something else might impact their function.
>
> But if you still need evidence, here's what I'm doing to verify table and record counts during a 9.6 -> 14 migration. You'll have to modify it for your purpose.

Thanks Ron !

I must admit that I am willing to trust pg_dump / pg_restore, mostly for the reasons Adrian Klaver implied.

However your script is likely the very thing I was looking for in terms of belt & braces.  So I appreciate you publishing it as a source of inspiration !

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Mitchell 2024-01-29 19:22:10 Seeking help extricating data from Amazon RDS Aurora/Postgres
Previous Message Adrian Klaver 2024-01-29 18:27:02 Re: Scriptable way to validate a pg_dump restore ?