Re: Postgres hangs during VACUUM (autocommit = false)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mark Coffman \(Epilogue Programmer\)" <mark(at)epilogue(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres hangs during VACUUM (autocommit = false)
Date: 2001-08-21 22:59:13
Message-ID: 12735.998434753@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mark Coffman \(Epilogue Programmer\)" <mark(at)epilogue(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-08-21 23:19:42 Re: Postgres hangs during VACUUM (autocommit = false)
Previous Message Mark Coffman (Epilogue Programmer) 2001-08-21 22:53:54 Re: Postgres hangs during VACUUM (autocommit = false)