Re: chained transactions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: chained transactions
Дата
Msg-id adb990de-c96d-c685-ddc1-5489aaf49316@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: chained transactions  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: chained transactions  (Fabien COELHO <coelho@cri.ensmp.fr>)
Re: chained transactions  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On 04/11/2018 12:20, Fabien COELHO wrote:
> Shouldn't psql tab completion be updated as well?

Done.  (I only did the AND CHAIN, not the AND NO CHAIN.)

> I must admit that do not like much the three global variables & 
> Save/Restore functions. I'd suggest saving directly into 3 local variables 
> in function CommitTransactionCommand, and restoring them when needed. Code 
> should not be longer. I'd would not bother to skip saving when not 
> chaining.

We're also using those functions in the 0002 patch.  Should we just
repeat the code three times, or use macros?

> Copying & comparing nodes are updated. Should making, outing and reading 
> nodes also be updated?

TransactionStmt isn't covered by the node serialization functions, so I
didn't see anything to update.  What did you have in mind?

> About the tests: I'd suggest to use more options on the different tests, 
> eg SERIALIZABLE, READ ONLY… Also ISTM that tests should show 
> transaction_read_only value as well.

OK, updated a bit.  (Using READ ONLY doesn't work because then you can't
write anything inside the transaction.)

Updated patch attached.  The previous (v2) patch apparently didn't apply
anymore.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: jsonpath
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_stat_ssl additions