pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Don Drake <dondrake@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: AutoCommit and DDL
Date: Sat, 26 Feb 2005 21:20:43 -0700
Message-ID: <20050227042043.GB77382@winnie.fuhr.org> (raw)
In-Reply-To: <6c21003b050226125634e9964@mail.gmail.com>
References: <6c21003b050226125634e9964@mail.gmail.com>

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/



view thread (8+ messages)  latest in thread

Message-ID: <20050227042043.GB77382@winnie.fuhr.org>
Permalink:  ../20050227042043.GB77382@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050227042043.GB77382@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, dondrake@gmail.com
  Subject: Re: AutoCommit and DDL
  In-Reply-To: <20050227042043.GB77382@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox