dbTalk Databases Forums  

[BUGS] DDL and transactions

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] DDL and transactions in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sad
 
Posts: n/a

Default [BUGS] DDL and transactions - 08-22-2003 , 08:59 AM






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 ?


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.