Re: Postgres hangs during VACUUM (autocommit = false) - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgres hangs during VACUUM (autocommit = false)
Date
Msg-id 12735.998434753@sss.pgh.pa.us
Whole thread Raw
In response to Re: Postgres hangs during VACUUM (autocommit = false)  ("Mark Coffman \(Epilogue Programmer\)" <mark@epilogue.net>)
List pgsql-general
"Mark Coffman \(Epilogue Programmer\)" <mark@epilogue.net> writes:
> Thanks for the reply.  I use Perl and DBI to make my database conneciton.
> In the

> BEGIN {}
> part of the module, I check for the persistant connection, and make one if
> none is present, autocommit off
> in the
> END {}
> block, I do a $dbh->commit();

Hmm.  I wonder whether "autocommit off" does what you think it does;
it may be that you want the exact opposite.

You might want to turn on query logging and see just what the clients
are sending.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgres hangs during VACUUM (autocommit = false)
Next
From: Fernando Lozano
Date:
Subject: Re: New RPMS ?