Re: Updating 457 rows in a table

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Updating 457 rows in a table
Date: 2024-05-20 12:33:37
Message-ID: eb6da387-986c-bed6-3e17-21bed5da872@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 20 May 2024, Alban Hertroys wrote:

> That aside, while you’re not absolutely 100% definitely sure that an
> UPDATE or DELETE statement is going to do exactly what you intended, and
> for good measure if you are, wrapping such statements in a transaction
> allows you to ROLLBACK to get back to the state that you started from.

Alban,

That's excellent advice and I'll do so in all future data manipulation
scripts. In the current situation psql did return that 457 rows had been
updated.

Much appreciated,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2024-05-20 14:24:02 Re: pg_dump and not MVCC-safe commands
Previous Message Erik Wienhold 2024-05-20 11:56:21 Re: How to update upper-bound of tstzrange ?