Re: create temp table .. on commit delete rows

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: create temp table .. on commit delete rows
Дата
Msg-id 452E2A8C.6060601@enterprisedb.com
обсуждение исходный текст
Ответ на create temp table .. on commit delete rows  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: create temp table .. on commit delete rows
Список pgsql-hackers
Teodor Sigaev wrote:
> 2)
> # insert into a values(1);

You're running in auto-commit, mode. An implicit commit happens after 
this statement. Which clears the table.

> # begin;
> # insert into a values(2);
> # rollback;
> # select * from a;
>  a
> ---
> (0 rows)
> 
> It seems to me that 1) is good, but 2) makes some strange, unpredictable 
> result...

Looks right to me.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: create temp table .. on commit delete rows
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: create temp table .. on commit delete rows