Re: Table modifications with dependent views - best - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Table modifications with dependent views - best
Date
Msg-id 20050422152722.GB21847@wolff.to
Whole thread Raw
In response to Re: Table modifications with dependent views - best  ("David Roussel" <pgsql-general@diroussel.xsmail.com>)
Responses Re: Table modifications with dependent views - best
List pgsql-general
On Fri, Apr 22, 2005 at 11:34:29 +0100,
  David Roussel <pgsql-general@diroussel.xsmail.com> wrote:
>
> > I usually put DDL statements in a transaction, for a couple of
> > reasons: so that a mistake doesn't leave me with half-done work
> > (any error will cause the entire transaction to roll back), and to
> > make the changes atomic for the benefit of other transactions.
>
> Can you do that in postgres?  Will it really make the DDL atomic?

I wasn't able to find where this is spelled out in the documentation,
but I believe all DDL commands except DROP DATABASE can be rolled back now.
For older versions of Postgres there were more DDL statements that were not
transaction safe.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: [SQL] How to install Postgres that supports 64-bit
Next
From: Scott Marlowe
Date:
Subject: Re: UltraSPARC versus AMD