transactions and ecpg

From: Wayne Cuddy <lists-pgsql(at)useunix(dot)net>
To: PostgreSQL <pgsql-sql(at)postgresql(dot)org>
Subject: transactions and ecpg
Date: 2012-09-22 17:34:31
Message-ID: 20120922173431.GF15197@slacker.ja10629.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm looking at some code that a coworker ported from Informix to
Postgres 9.0. The Informix database did not have transaction logging
enabled thus no begins/aborts/commits/rollbacks where in the original
code. The way the code has been ported there are still no begin
statements in the code, only commit and rollback after data changing
statements are executed.

Question 1: After a commit/rollback does the next SQL statement
implicitly begin a transaction?

Question 2: If we're just examining data via SELECT statements should we
be issuing COMMIT statements after or are they only required for data
modifying operations?

Thanks in advance,
Wayne

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message JORGE MALDONADO 2012-09-23 00:15:14
Previous Message Pavel Stehule 2012-09-22 08:16:46 Re: matching a timestamp field