Re: unknown error message

Поиск
Список
Период
Сортировка
От Markus Schiltknecht
Тема Re: unknown error message
Дата
Msg-id 1153768285.5370.11.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: unknown error message  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, 2006-07-24 at 14:54 -0400, Tom Lane wrote:
> Right offhand the only way that I could see for the tuple to disappear
> before the trigger fires is if a concurrent VACUUM removed it, which
> should not happen for a tuple inserted by a still-active transaction.
> If you've got autovacuum running in the background, the unpredictability
> of vacuum timing might be contributing to difficulty of reproducing.

Sorry, I was unclear: luckily the error is easily reproducible. The
problem is just to cut unnecessary parts and to come up with a small
test case. I'll give it a try tomorrow.

As far as VACUUM is concerned: I run this data-loading script just after
CREATE DATABASE. In my tests, not more than some 100 rows (rough guess)
are inserted until the error occurs. It would surprise me if that would
have fired an autovacuum every time I tried. Plus as you say, it all
happens in the same transaction.

(Oh, and I even tried with a sleep(5) before the commit and the error
still occurred. I guess an autovacuum most probably won't take that long
with so few rows.)

Regards

Markus



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: unknown error message
Следующее
От: Tom Lane
Дата:
Сообщение: Re: gmake Errors: pg_backup_archiver.c: undefined reference to `lo_create'