Re: AutoCommit and DDL - Mailing list pgsql-sql

From Don Drake
Subject Re: AutoCommit and DDL
Date
Msg-id 6c21003b0502271755fb9b917@mail.gmail.com
Whole thread Raw
In response to AutoCommit and DDL  (Don Drake <dondrake@gmail.com>)
Responses Re: AutoCommit and DDL  (Michael Fuhr <mike@fuhr.org>)
List pgsql-sql
I did some traces and it all looks OK.

The problem has to do with multiple concurrent connections to the
server causing problems.  I've removed the concurrent connections and
now this works.  Strange.

-Don


On Sun, 27 Feb 2005 12:54:34 -0700, Michael Fuhr <mike@fuhr.org> wrote:
> On Sun, Feb 27, 2005 at 11:55:37AM -0600, Don Drake wrote:
> 
> > 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.
> 
> Have you used any of DBI's tracing capabilities?  Could you post a
> simple test case?  The following works for me with Perl 5.8.6, DBI
> 1.47, DBD::Pg 1.32, and PostgreSQL 7.4.7 on FreeBSD 4.11-STABLE:
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> use DBI;
> 
> my $dbh = DBI->connect("dbi:Pg:dbname=test", "mfuhr", "", {AutoCommit => 0});
> $dbh->do("CREATE TABLE foo (x integer)");
> $dbh->commit;
> $dbh->disconnect;
> 
> --
> Michael Fuhr
> http://www.fuhr.org/~mfuhr/
> 


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


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Serial and Index
Next
From: "Steve Valaitis"
Date:
Subject: Re: Junk queries with variables?