I think the statement "without a transaction, Postgres will do nothing, ever". For example: you can write a small C program using libpq that executes a simple SELECT without any transaction SQL code. Here's a comment from PostgreSQL's website [1]:<br>
<pre class="PROGRAMLISTING"> /*<br> * Our test case here involves using a cursor, for which we must be inside<br> * a transaction block. We could do the whole thing with a single<br> * PQexec() of "select * from pg_database", but that's too trivial to make<br>
* a good example.<br> */<br></pre>Been there, done that. I've been programming C + libpq for almost a decade now. There's another example at another website that do not use transactions at all: <a href="http://momjian.us/main/writings/pgsql/writing_apps/">http://momjian.us/main/writings/pgsql/writing_apps/</a><br>
<br>[1] <a href="http://www.postgresql.org/docs/current/static/libpq-example.html">http://www.postgresql.org/docs/current/static/libpq-example.html</a><br><br><div class="gmail_quote">2010/11/23 Joost van der Sluis <span dir="ltr"><<a href="mailto:joost@cnoc.nl">joost@cnoc.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Well, you always need a transaction. Without a transaction, Postgres<br>
will do nothing, ever.<br>
<br>
I assume you are used to the fact that postgres automatically creates an<br>
transaction for you. With Sqldb you have to do this yourself.<br clear="all"></blockquote></div><br>-- <br>Atenciosamente,<br>Alexsander da Rosa<br>Linux User #113925<br><br>"Extremismo na defesa da liberdade não é defeito.<br>
Moderação na busca por justiça não é virtude."<br>-- Barry Goldwater<br>