Re: Undo Update

From: Holger Jakobs <holger(at)jakobs(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Undo Update
Date: 2023-08-10 09:06:38
Message-ID: 89095BFA-4C53-4E34-AB59-F58551B8F909@jakobs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I'm afraid you will have to execute the SQL statement undoing it. Of you don't know the previous values, you're out of luck.

Then a backup is your best friend.

Am 10. August 2023 11:02:26 MESZ schrieb Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>:
>Hi friends
>
>I was given a query to update the record in table A with where clause. But
>I executed it in production mistakenly without where clause so it updated
>incorrectly for all rows.
>
>How do I resolve this?

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rajesh Kumar 2023-08-10 09:17:43 Re: Undo Update
Previous Message Wells Oliver 2023-08-10 09:04:12 Re: Automate to rename table