agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Rob Sargent <robjsargent@gmail.com>
To: pgsql-sql@lists.postgresql.org
Subject: Re: Transactions in one table
Date: Fri, 27 Sep 2019 10:41:05 -0600
Message-ID: <edb1a2bc-97e9-0cae-9496-92baddd5a663@gmail.com> (raw)
In-Reply-To: <CAAY=A78LOLrpLxw5t+cm12bdC2z4=rb2kqm=UW2_LDDM9Cj1JQ@mail.gmail.com>
References: <CAAY=A78LOLrpLxw5t+cm12bdC2z4=rb2kqm=UW2_LDDM9Cj1JQ@mail.gmail.com>
On 9/27/19 10:21 AM, JORGE MALDONADO wrote:
> Hi,
>
> Does it make any sense to use transactions if only one DB operation is
> performed in only one table?
> For example, insert only one record in a "countries" table without
> doing anything else in other table(s). One operation, one table,
> that´s it.
>
> Best regards,
> Jorge Maldonado
When making changes interactively I highly recommend begin; <sql>; like
the number of affected rows; commit;
view thread (4+ messages)
Message-ID: <edb1a2bc-97e9-0cae-9496-92baddd5a663@gmail.com>
Permalink: ../edb1a2bc-97e9-0cae-9496-92baddd5a663@gmail.com/
Also on: postgresql.org/message-id/edb1a2bc-97e9-0cae-9496-92baddd5a663@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: robjsargent@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: Transactions in one table
In-Reply-To: <edb1a2bc-97e9-0cae-9496-92baddd5a663@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox