Re: Question for coverage report - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Question for coverage report
Date
Msg-id 202510212021.l7d7kaod6w3a@alvherre.pgsql
Whole thread Raw
In response to Re: Question for coverage report  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: Question for coverage report
List pgsql-hackers
On 2025-Oct-21, Jacob Champion wrote:

> Are you able to double-check the compiler invocation for pgoutput.c?

Yep -- it does get -O0.  Is there some other flag this is missing?

make -C backend/replication/pgoutput all
make[2]: Entering directory '/home/coverage/pgsrc/pgsql/src/backend/replication/pgoutput'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute-Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security
-fno-strict-aliasing-fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -fprofile-arcs
-ftest-coverage-O0 -fPIC -fvisibility=hidden -I../../../../src/include -DCOPY_PARSE_PLAN_TREES
-DWRITE_READ_PARSE_PLAN_TREES-DRAW_EXPRESSION_COVERAGE_TEST -D_GNU_SOURCE  -I/usr/include/libxml2     -c -o pgoutput.o
pgoutput.c-MMD -MP -MF .deps/pgoutput.Po
 
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute-Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security
-fno-strict-aliasing-fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -fprofile-arcs
-ftest-coverage-O0 -fPIC -fvisibility=hidden -shared -o pgoutput.so  pgoutput.o -L../../../../src/port
-L../../../../src/common   -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags -fvisibility=hidden 
 
make[2]: Leaving directory '/home/coverage/pgsrc/pgsql/src/backend/replication/pgoutput'

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"I must say, I am absolutely impressed with what pgsql's implementation of
VALUES allows me to do. It's kind of ridiculous how much "work" goes away in
my code.  Too bad I can't do this at work (Oracle 8/9)."       (Tom Allison)
           http://archives.postgresql.org/pgsql-general/2007-06/msg00016.php



pgsql-hackers by date:

Previous
From: Arseniy Mukhin
Date:
Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue
Next
From: "David E. Wheeler"
Date:
Subject: Re: abi-compliance-check failure due to recent changes to pg_{clear,restore}_{attribute,relation}_stats()