Re: psql feature thought

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql feature thought
Date: 2006-05-16 03:22:56
Message-ID: e4bgp8$2l9f$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


""Joshua D. Drake"" <jd(at)commandprompt(dot)com> wrote
>
> What if single line statements that were seperated by ; within psql were
> implicitly within a transaction?
>
> E.g;
>
> postgres=# select * from foo; update foo set bar = 'baz'; delete from
bing;
>
> Would be a single transaction ? The begin/commit would be implicit.
>

This is not in a single transaction currently. This is not a back compatible
behavior. Also, I am not sure how difficult to implement it in current psql
code. Think of this case:

begin;
select; update; delete;
end;

Line 2 is already in a transaction, so psql must be able to tell it (maybe
we already be able to do so?). Not to speak of the SAVEPOINT control points.

Regards,
Qingqing

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Qingqing Zhou 2006-05-16 03:25:10 Re: Why use " != "
Previous Message Tom Lane 2006-05-16 03:18:21 Re: psql feature thought