Re: Automatic transactions in psql
| От | Tom Lane |
|---|---|
| Тема | Re: Automatic transactions in psql |
| Дата | |
| Msg-id | 14614.1013107234@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Automatic transactions in psql (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: Automatic transactions in psql
|
| Список | pgsql-patches |
Peter Eisentraut <peter_e@gmx.net> writes:
> This is an interesting idea, although you may want to give the user the
> option to customize his prompt.
Seems cool. I am a bit worried about whether the transaction-block
detection mechanism is reliable, though. We might need to add something
to the FE/BE protocol to make this work correctly.
>> Secondly, it adds a "begin transaction" option that, when
>> enabled, ensures that you are always inside a transaction
>> while in psql, so you can always rollback.
> This should be done in the backend.
Agreed. If I recall recent discussions correctly, the spec says that
certain SQL commands should open a transaction and others should not.
It's not reasonable to have that logic in psql rather than the backend.
regards, tom lane
В списке pgsql-patches по дате отправления: