Re: Followup: vacuum'ing toast

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Eduardo Morras <emorras(at)s21sec(dot)com>
Cc: pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Followup: vacuum'ing toast
Date: 2009-11-05 12:09:10
Message-ID: 4AF2C066.7070201@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Craig Ringer wrote:
> Eduardo Morras wrote:
>>> 3) Autocommit being disabled. At least when using Hibernate via JPA,
>>> that'll cause a major mess and would easily explain the issues you're
>>> seeing. Hibernate manages transactions explicitly when required, and
>>> expects autocommit to be off.
>> Excuse me but i don't understand this point. You say that the problem happens if Autocommit is disabled but that hibernates expects that Autocommit is disabled for a correct work. What's better then? Autocommit off for Hibernate or Autocommit On for the original poster problem. Can you explain it more?
>
> Argh!
>
> I'm really sorry. I meant that Hibernate expects autocommit to be
> _enabled_.

Some searching suggests that, indeed, the issue is that when using
Hibernate via JPA (Hibernate EntityManager) autocommit needs to be left
enabled.

For some reason there doesn't seem to be any explicit reference to
autocommit in the Hibernate EntityManager docs or the EJB3 spec. I can't
find anything but (numerous) forum posts and the like on this, so don't
take it as definitive.

--
Craig Ringer

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message S Arvind 2009-11-05 13:20:19 Re: Running some query in low priority
Previous Message Craig Ringer 2009-11-05 11:49:07 Re: Followup: vacuum'ing toast