Compiling PostgreSQL extension, getting "error: ‘work_mem’ undeclared (first use in this function)"
Compiling PostgreSQL extension, getting "error: ‘work_mem’ undeclared (first use in this function)"
当我编译我得到的扩展时,我得到
error: ‘work_mem’ undeclared (first use in this function)
17 | Tuplestorestate *tupstore = tuplestore_begin_heap(true, false, work_mem);
header 包括什么 work_mem
?
work_mem
symbol is provided by misadmin.h
您必须将 header 添加到您的 .c
文件中。
#include "miscadmin.h"
当我编译我得到的扩展时,我得到
error: ‘work_mem’ undeclared (first use in this function)
17 | Tuplestorestate *tupstore = tuplestore_begin_heap(true, false, work_mem);
header 包括什么 work_mem
?
work_mem
symbol is provided by misadmin.h
您必须将 header 添加到您的 .c
文件中。
#include "miscadmin.h"