Re: AutoCommit and DDL

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Don Drake <dondrake(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: AutoCommit and DDL
Date: 2005-02-27 04:20:43
Message-ID: 20050227042043.GB77382@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, Feb 26, 2005 at 02:56:52PM -0600, Don Drake wrote:

> I turned AutoCommit on and re-ran the perl script and the tables get
> created. Why won't these table's get created when AutoCommit is off?
> Why do I have to commit DDL?

If you're using DBI, are you using PrintError or RaiseError or
otherwise checking the success of each command? My first guess
would be that some command is failing (e.g., a DROP of an object
that doesn't exist), so the transaction is automatically rolled
back even though you requested a commit.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-02-27 05:53:54 Re: diference in dates in minutes
Previous Message Bruno Wolff III 2005-02-26 21:16:10 Re: diference in dates in minutes