Re: Statement Timeout Message Incorrect - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Statement Timeout Message Incorrect
Date
Msg-id 25252.1201121555@sss.pgh.pa.us
Whole thread Raw
In response to Statement Timeout Message Incorrect  (elein <elein@varlena.com>)
List pgsql-bugs
elein <elein@varlena.com> writes:
> Running 8.3RC1
> I have an sql script where one or more create index statements
> raise a statement timeout message. The statement timeout is
> set to 1d.

Hmmm ... are you using integer timestamps by any chance?
It looks to me like TimestampTzPlusMilliseconds() would overflow
for such a large timeout.

> The script runs in ~3 hours including the timeout messages.

If I'm doing the math correctly, 1 day would overflow to about
8 minutes in microseconds, so if you're seeing individual statements
time out after more than that then there's something else going on.

            regards, tom lane

pgsql-bugs by date:

Previous
From: elein
Date:
Subject: Statement Timeout Message Incorrect
Next
From: "Steven Flatt"
Date:
Subject: BUG #3898: Postgres autovacuum not respecting pg_autovacuum.enabled = false