Re: Support a wildcard in backtrace_functions

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Support a wildcard in backtrace_functions
Дата
Msg-id
ZiYFbOsYj5zFJDEj@paquier.xyz
Ответ на
Список
Дерево обсуждения
Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Daniel Gustafsson <daniel@yesql.se>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Daniel Gustafsson <daniel@yesql.se>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Support a wildcard in backtrace_functions Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Support a wildcard in backtrace_functions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Support a wildcard in backtrace_functions Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Support a wildcard in backtrace_functions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Support a wildcard in backtrace_functions Andres Freund <andres@anarazel.de>
Re: Support a wildcard in backtrace_functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Support a wildcard in backtrace_functions Andres Freund <andres@anarazel.de>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Peter Eisentraut <peter@eisentraut.org>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Robert Haas <robertmhaas@gmail.com>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Michael Paquier <michael@paquier.xyz>
Re: Support a wildcard in backtrace_functions Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Support a wildcard in backtrace_functions Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Daniel Gustafsson <daniel@yesql.se>
Re: Support a wildcard in backtrace_functions Jelte Fennema-Nio <me@jeltef.nl>
Re: Support a wildcard in backtrace_functions Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Support a wildcard in backtrace_functions Daniel Gustafsson <daniel@yesql.se>
Re: Support a wildcard in backtrace_functions Daniel Gustafsson <daniel@yesql.se>
On Sun, Apr 21, 2024 at 09:26:38AM +0200, Peter Eisentraut wrote:
> Note that a standard test run produces a number of internal errors.  I
> haven't checked how likely these are in production, but one might want to
> consider that before starting to dump backtraces in routine situations.
> 
> For example,
> 
> $ PG_TEST_INITDB_EXTRA_OPTS='-c backtrace_on_internal_error=on' meson test
> -C build
> $ grep -r 'BACKTRACE:' build/testrun | wc -l
> 85

Ugh, I would not have expected that much.  Isn't the problem you are
reporting here entirely unrelated, though?  It seems to me that these
error paths should be using a proper errcode rather than the internal
errcode, as these refer to states that can be reached by the user with
a combination of queries and/or cancellations.

For example, take this one for the REFRESH matview path which is a
valid error, still using an elog():
    if (!foundUniqueIndex)
        elog(ERROR, "could not find suitable unique index on materialized view");

I'd like to think about this stuff in a different way: this is useful
if enabled by default because it can also help in finding out error
paths that should not use the internal errcode.  Normally, there
should be zero backtraces produced, except in unexpected
never-to-be-reached cases.
--
Michael
В списке pgsql-hackers по дате отправления
От: Richard Guo
Дата:
От: Michael Paquier
Дата:
FAQ