OSDN Git Service

Support terse logging in enable_debug.
authorFujii Masao <fujii@postgresql.org>
Wed, 26 Feb 2020 09:39:41 +0000 (18:39 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 26 Feb 2020 09:39:41 +0000 (18:39 +0900)
commit46536e8eacd637046ad0dff70396758ccf536712
tree5085bb1a970f40614857cfa13d87138e46ca5e6d
parent3b76bda9fefcef7d74cf8879f582b4e84db2166f
Support terse logging in enable_debug.

This commit allows us to set enable_debug option to 'terse' as
a setting value. When it's 'terse', the contents dealt in ludia_funcs
internal functions are excluded from the debug messages.
For example, if it's set to 'on', not only the name of function
pgs2norm() but also the target string that the function normalizes
are included in the debug messages. But if it's 'terse', only the
terse information like function name is output.

Previously we set enable_debug to 'on', in order to check
whether recheck is skipped or not in the regression test.
But the order of the contents in the debug messages varied
depending on the block size in PostgreSQL server. Which
would lead to unexpected failure of regression test in PostgreSQL
built with non-default block size. In order to stabilize the result
of this regression test, this patch make the test use debug level
'terse'.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/ludiafuncs/lists/archive/hackers/2020-February/000046.html
expected/pg_bigm.out
ludia_funcs.c
sql/pg_bigm.sql