Re: PostgreSQL 8.4.8 bringing my website down every evening

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: PostgreSQL 8.4.8 bringing my website down every evening
Дата
Msg-id BANLkTikdSK8mvtHp7taU0C-i6enDkA5UKw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PostgreSQL 8.4.8 bringing my website down every evening  (Alexander Farber <alexander.farber@gmail.com>)
Ответы Re: PostgreSQL 8.4.8 bringing my website down every evening
Список pgsql-general
On Mon, Jun 20, 2011 at 9:36 AM, Alexander Farber
<alexander.farber@gmail.com> wrote:
> I've added
>
>  $db->beginTransaction();
>  ....
>  $db->commit();
>
> around _all_ statements, but now get:

I don't think that was a good idea.

>  SQLSTATE[25P02]: In failed sql transaction:
>  7 ERROR: current   transaction is aborted,
>  commands ignored until end of transaction block
>
> quite often. I don't understand why
> would transaction get aborted here...

Probably some commands were meant to be run
in same transaction, or were transaction control
commands.

Don't do it without synchronizing with business logic...

> Maybe I should try session mode of pgbouncer
> again, now that I've got rid of the persistent
> PHP connections?

You could, but try to turn off prepared
statements in PDO first.

--
marko

В списке pgsql-general по дате отправления:

Предыдущее
От: BangarRaju Vadapalli
Дата:
Сообщение: Re: Forward referencing of table aliases in subqueries does not work in 9.1 beta2 ( works in 9.0 and 8.4.2 )
Следующее
От: Tarlika Elisabeth Schmitz
Дата:
Сообщение: unique across two tables