| From: | Richard Broersma <richard(dot)broersma(at)gmail(dot)com> |
|---|---|
| To: | Andy Colson <andy(at)squeakycode(dot)net> |
| Cc: | Justin Pitts <justinpitts(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org |
| Subject: | Re: Compared MS SQL 2000 to Postgresql 9.0 on Windows |
| Date: | 2010-12-07 19:56:51 |
| Message-ID: | AANLkTin4K86j2-GOUfmdXQ8UKv_j9V8ZRiRBEbbXj+jc@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On Tue, Dec 7, 2010 at 11:43 AM, Andy Colson <andy(at)squeakycode(dot)net> wrote:
> In PG the first statement you fire off (like an "insert into" for example)
> will start a transaction. If you dont commit before you disconnect that
> transaction will be rolled back. Even worse, if your program does not
> commit, but keeps the connection to the db open, the transaction will stay
> open too.
Huh - is this new? I always thought that every statement was wrapped
in its own transaction unless you explicitly start your own. So you
shouldn't need to commit before closing a connection if you never
opened a transaction to begin with.
--
Regards,
Richard Broersma Jr.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gary Doades | 2010-12-07 19:58:37 | Re: Compared MS SQL 2000 to Postgresql 9.0 on Windows |
| Previous Message | Andy Colson | 2010-12-07 19:43:21 | Re: Compared MS SQL 2000 to Postgresql 9.0 on Windows |