Re: Commit not required for update statement

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

 



Hi Mark

Thank you for sharing, as per the link

https://www.postgresql.org/docs/current/static/tutorial-transactions.html
"PostgreSQL actually treats every SQL statement as being executed within a transaction. If you do not issue a BEGINcommand, then each individual statement has an implicit BEGIN and (if successful) COMMIT wrapped around it. A group of statements surrounded by BEGIN and COMMIT is sometimes called a transaction block."

Note

Some client libraries issue BEGINand COMMIT commands automatically, so that you might get the effect of transaction blocks without asking. Check the documentation for the interface you are using.

Does this mean..every statement which does not have begin will be automatically commited. 


On Mon, 15 Oct 2018, 09:20 Mark Kirkwood, <mark.kirkwood@xxxxxxxxxxxxxxx> wrote:
Hi,

Definitely worth reading what the docs say about this, should clear
things up:
https://www.postgresql.org/docs/current/static/tutorial-transactions.html

regards

Mark


On 15/10/18 15:30, prasanna rk wrote:
> Hi all
>
> We are running posters 10.4 version, wanted to know if commit
> statement is not required for update.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux