pg_pathman icon indicating copy to clipboard operation
pg_pathman copied to clipboard

An alarm appears when executing the "make" command, which is related to a function

Open mithrawrx opened this issue 7 years ago • 0 comments

Problem description

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I/tmp/pg_pathman-master/src/include -DENABLE_DECLARATIVE -I. -I./ -I/usr/pgsql-10.6/include/server -I/usr/pgsql-10.6/include/internal -D_GNU_SOURCE -c -o src/partition_filter.o src/partition_filter.c src/partition_filter.c: In function ‘select_partition_for_insert’: src/partition_filter.c:532:9: warning: ‘value’ may be used uninitialized in this function [-Wmaybe-uninitialized] parts = find_partitions_for_value(value, prel->ev_type, prel, &nparts); ^ gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I/tmp/pg_pathman-master/src/include -DENABLE_DECLARATIVE -I. -I./ -I/usr/pgsql-10.6/include/server -I/usr/pgsql-10.6/include/internal -D_GNU_SOURCE -c -o src/runtime_append.o src/runtime_append.c

Environment

postgres=# select * from pg_extension; extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition --------------------+----------+--------------+----------------+------------+---------------+-------------- plpgsql | 10 | 11 | f | 1.0 | | pg_pathman | 10 | 2200 | f | 1.5 | {16415,16426} | {"",""} pg_stat_statements | 10 | 2200 | t | 1.6 | | pgaudit | 10 | 2200 | t | 1.2 | |

The above alarm occurred during the compilation process, because of the above alarm, we were worried that this extended function would not run stably on the production system.Please help analyze this problem. Thank you very much

                     version                                                 

PostgreSQL 10.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit (1 row)

ERROR: function pgpro_version() does not exist LINE 1: SELECT pgpro_version(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

postgres=# SELECT pgpro_edition(); ERROR: function pgpro_edition() does not exist LINE 1: SELECT pgpro_edition(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

postgres=# SELECT get_pathman_lib_version(); ERROR: function get_pathman_lib_version() does not exist LINE 1: SELECT get_pathman_lib_version(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

mithrawrx avatar Dec 09 '18 06:12 mithrawrx