DDL and transactions

Поиск
Список
Период
Сортировка
От sad
Тема DDL and transactions
Дата
Msg-id 200308221758.49558.sad@bankir.ru
обсуждение исходный текст
Ответы Re: DDL and transactions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Why does a DDL command starts a transaction ?!

try
# set autommit=3Doff;
SET
# create table a (i int);
CREATE TABLE
# create table b (i int);
ERROR:  current transaction is aborted, queries ignored until end of=20
transaction block
# commit;
COMMIT
# create table b (i int);
CREATE TABLE
# \d
               List of relations
 Schema |      Name      |   Type    | Owner
----------+---------------+-----------+-------
 public   | a                  | table       | pgsql
 public   | b                  | sequence | pgsql

Dont you find curious a commiting of a DDL ?

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

Предыдущее
От: Bernd vd Brincken
Дата:
Сообщение: Re: Postgre connection management
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Postgre connection management