Skip to content

PostgreSQL 17 support #39

@Vonng

Description

@Vonng

Fail to build against PostgreSQL 17

make[4]: Entering directory '/home/vagrant/pigsty-deb/pg-store-plan/build'
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 -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -g -O2 -ffile-prefix-map=/home/vagrant/pigsty-deb/pg-store-plan/build=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -fvisibility=hidden -fPIC -fvisibility=hidden -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o pg_store_plans.o pg_store_plans.c
In file included from /usr/include/postgresql/17/server/executor/instrument.h:16,
                 from /usr/include/postgresql/17/server/nodes/execnodes.h:33,
                 from /usr/include/postgresql/17/server/executor/execdesc.h:18,
                 from /usr/include/postgresql/17/server/executor/executor.h:17,
                 from /usr/include/postgresql/17/server/commands/explain.h:16,
                 from pg_store_plans.c:41:
pg_store_plans.c: In function ‘pgsp_store’:
pg_store_plans.c:1359:72: error: ‘BufferUsage’ has no member named ‘blk_read_time’; did you mean ‘temp_blk_read_time’?
 1359 |         e->counters.blk_read_time += INSTR_TIME_GET_MILLISEC(bufusage->blk_read_time);
      |                                                                        ^~~~~~~~~~~~~
/usr/include/postgresql/17/server/portability/instr_time.h:126:19: note: in definition of macro ‘INSTR_TIME_GET_NANOSEC’
  126 |         ((int64) (t).ticks)
      |                   ^
pg_store_plans.c:1359:38: note: in expansion of macro ‘INSTR_TIME_GET_MILLISEC’
 1359 |         e->counters.blk_read_time += INSTR_TIME_GET_MILLISEC(bufusage->blk_read_time);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~
pg_store_plans.c:1360:73: error: ‘BufferUsage’ has no member named ‘blk_write_time’; did you mean ‘temp_blk_write_time’?
 1360 |         e->counters.blk_write_time += INSTR_TIME_GET_MILLISEC(bufusage->blk_write_time);
      |                                                                         ^~~~~~~~~~~~~~
/usr/include/postgresql/17/server/portability/instr_time.h:126:19: note: in definition of macro ‘INSTR_TIME_GET_NANOSEC’
  126 |         ((int64) (t).ticks)
      |                   ^
pg_store_plans.c:1360:39: note: in expansion of macro ‘INSTR_TIME_GET_MILLISEC’
 1360 |         e->counters.blk_write_time += INSTR_TIME_GET_MILLISEC(bufusage->blk_write_time);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
pg_store_plans.c: In function ‘pg_store_plans_internal’:
pg_store_plans.c:1684:9: warning: implicit declaration of function ‘tuplestore_donestoring’; did you mean ‘tuplestore_rescan’? [-Wimplicit-function-declaration]
 1684 |         tuplestore_donestoring(tupstore);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         tuplestore_rescan
make[4]: *** [<builtin>: pg_store_plans.o] Error 1
make[4]: Leaving directory '/home/vagrant/pigsty-deb/pg-store-plan/build'
### End 17 loop (FAILED with exit code 2) ###
make[3]: *** [debian/rules:18: override_dh_auto_install] Error 2
make[3]: Leaving directory '/home/vagrant/pigsty-deb/pg-store-plan/build'
make[2]: *** [debian/rules:21: binary] Error 2
make[2]: Leaving directory '/home/vagrant/pigsty-deb/pg-store-plan/build'
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [Makefile:17: build] Error 2
make[1]: Leaving directory '/home/vagrant/pigsty-deb/pg-store-plan'
make: *** [Makefile:136: pg_store_plan] Error 2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions