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


Reply via email to