Search Postgresql Archives

Re: [JDBC] JDBC behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/18/2016 12:26 AM, Sridhar N Bamandlapally wrote:
If we want transactions in "begin-end" then its fine,

but in this case all these transactions are independent with autocommit off,

with autocommit OFF, when you issue the first query, jdbc generates a postgresql BEGIN; this starts a postgresql transaction. To end the transaction, you have to explicitly .commit() or .rollback() ....

with autocommit ON, then jdbc lets each query execute standalone, this is postgresql's default behavior if you don't use BEGIN...



--
john r pierce, recycling bits in santa cruz



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux