Feature Request: Report additionally error value

Поиск
Список
Период
Сортировка
От Eugen Konkov
Тема Feature Request: Report additionally error value
Дата
Msg-id 1432862271.20201129005758@yandex.ru
обсуждение исходный текст
Ответы Re: Feature Request: Report additionally error value
Список pgsql-hackers
Hi all.

I often fall into error like this:

DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR:  timestamp out of range
CONTEXT:  SQL function "accounting_ready" statement 1 [for Statement "SELECT COUNT( * ) FROM (WITH
target_date AS ( SELECT ?::timestamptz ),
target_order as (
  SELECT
    invoice_range as bill_range,
    o.*
  FROM ( SELECT * FROM "order_bt" WHERE sys_period @> sys_time() ) o
  LEFT JOIN period prd on prd.id = o.period_id
  LEFT JOIN accounting_ready(
.....
other 200 lines of query

Would be nice if here also will be reported error value.
It will shed more light on what is comming wrong

Also would be useful if PG point at query where this bad value was calculated or occur.

It this possible?

Thank you.


--
Best regards,
Eugen Konkov

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [sqlsmith] Failed assertion during partition pruning
Следующее
От: Robert Haas
Дата:
Сообщение: Re: parallel distinct union and aggregate support patch