Re: Updating 457 rows in a table - Mailing list pgsql-general

From Rich Shepard
Subject Re: Updating 457 rows in a table
Date
Msg-id eb6da387-986c-bed6-3e17-21bed5da872@appl-ecosys.com
Whole thread Raw
In response to Re: Updating 457 rows in a table  (Alban Hertroys <haramrae@gmail.com>)
List 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



pgsql-general by date:

Previous
From: Erik Wienhold
Date:
Subject: Re: How to update upper-bound of tstzrange ?
Next
From: Tom Lane
Date:
Subject: Re: pg_dump and not MVCC-safe commands