Dear all,
I'm trying to install pg_get_queryid on Ubuntu 20.04 for Postgres version 14. Unfortunately, I'm receiving an error during compilation phase as below.
line 142 : too few arguments to function --> prev_post_parse_analyze_hook(pstate, query);
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -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 -fPIC -I. -I./ -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o pg_get_queryid.o pg_get_queryid.c
pg_get_queryid.c: In function ‘pgqi_post_parse_analyze’:
pg_get_queryid.c:142:3: error: too few arguments to function ‘prev_post_parse_analyze_hook’
142 | prev_post_parse_analyze_hook(pstate, query);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pg_get_queryid.c: In function ‘_PG_init’:
pg_get_queryid.c:232:26: warning: assignment to ‘post_parse_analyze_hook_type’ {aka ‘void (*)(struct ParseState *, struct Query *, struct JumbleState )’} from incompatible pointer type ‘void ()(ParseState *, Query )’ {aka ‘void ()(struct ParseState *, struct Query *)’} [-Wincompatible-pointer-types]
232 | post_parse_analyze_hook = pgqi_post_parse_analyze;
| ^
make: *** [: pg_get_queryid.o] Error 1
Best regards,
Dear all,
I'm trying to install pg_get_queryid on Ubuntu 20.04 for Postgres version 14. Unfortunately, I'm receiving an error during compilation phase as below.
line 142 : too few arguments to function --> prev_post_parse_analyze_hook(pstate, query);
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -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 -fPIC -I. -I./ -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o pg_get_queryid.o pg_get_queryid.c
pg_get_queryid.c: In function ‘pgqi_post_parse_analyze’:
pg_get_queryid.c:142:3: error: too few arguments to function ‘prev_post_parse_analyze_hook’
142 | prev_post_parse_analyze_hook(pstate, query);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pg_get_queryid.c: In function ‘_PG_init’:
pg_get_queryid.c:232:26: warning: assignment to ‘post_parse_analyze_hook_type’ {aka ‘void (*)(struct ParseState *, struct Query *, struct JumbleState )’} from incompatible pointer type ‘void ()(ParseState *, Query )’ {aka ‘void ()(struct ParseState *, struct Query *)’} [-Wincompatible-pointer-types]
232 | post_parse_analyze_hook = pgqi_post_parse_analyze;
| ^
make: *** [: pg_get_queryid.o] Error 1
Best regards,