From: David Wall <d.wall@computer.org>
To: pgsql-general@lists.postgresql.org
Subject: For SELECT statement (just a reading one, no 'FOR UPDATE'), is COMMIT or ROLLBACK preferred?
Date: Sun, 25 Aug 2019 12:09:41 -0700
Message-ID: <3e16442c-a60a-679a-e72e-6d895552b6f8@computer.org> (raw)
Using the latest PostgreSQL, does it matter if my code does a ROLLBACK
or a COMMIT on an non-modifying SELECT statement? My impression is
they'd be the same as nothing is changed and therefore there's nothing
to commit or rollback, but wondered if there was any difference in how
they are processed by Postgres?
Thanks,
David
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: d.wall@computer.org
Subject: Re: For SELECT statement (just a reading one, no 'FOR UPDATE'), is COMMIT or ROLLBACK preferred?
In-Reply-To: <3e16442c-a60a-679a-e72e-6d895552b6f8@computer.org>
References: <3e16442c-a60a-679a-e72e-6d895552b6f8@computer.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox