create temp table .. on commit delete rows

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

2)
# insert into a values(1);
# 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...

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Hints (Was: Index Tuning Features)
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: create temp table .. on commit delete rows