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

I know it's not failing, I have the server logging the commands and
there are no errors.

The only change made was turning AutoCommit on.

-Don


On Sat, 26 Feb 2005 21:20:43 -0700, Michael Fuhr <mike@fuhr.org> wrote:
> 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/
> 


-- 
Donald Drake
President
Drake Consulting
http://www.drakeconsult.com/
http://www.MailLaunder.com/
312-560-1574



view thread (8+ messages)  latest in thread

Message-ID: <6c21003b0502270955673432e7@mail.gmail.com>
Permalink:  ../6c21003b0502270955673432e7@mail.gmail.com/
Also on:    postgresql.org/message-id/6c21003b0502270955673432e7@mail.gmail.com

 · 

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: dondrake@gmail.com, mike@fuhr.org
  Subject: Re: AutoCommit and DDL
  In-Reply-To: <6c21003b0502270955673432e7@mail.gmail.com>

* 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