Re: [HACKERS] DROP TABLE inside a transaction block
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] DROP TABLE inside a transaction block |
Дата | |
Msg-id | 200003072340.SAA00329@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] DROP TABLE inside a transaction block (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: [HACKERS] DROP TABLE inside a transaction block
|
Список | pgsql-hackers |
[Charset ISO-8859-1 unsupported, filtering to ASCII...] > Tatsuo Ishii writes: > > > I see following in HISTORY: > > > > Disallow DROP TABLE/DROP INDEX inside a transaction block > > > > However, it seems that this is not done with current? > > > > test=# create table t1(i int); > > CREATE > > test=# begin; > > BEGIN > > test=# drop table t1; > > NOTICE: Caution: DROP TABLE cannot be rolled back, so don't abort now > > Wow, with all due respect, that's pretty sh^H^Hpoor. That's like saying > "Haha, either you commit your transaction or your database is fried." Any > reason that's not an ERROR before anything destructive is done? I tried it and the ABORT worked, so I have no idea now what is happening here. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: