Hi. I have errors? when i try build this. Postgres version 10.7
pg_mystem.cpp:502:113: error: too few arguments to function ‘int WaitLatch(volatile Latch*, int, long int, uint32)’
itLatch(MyLatch, WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH, currTimeout);
^
In file included from pg_mystem.cpp:22:0:
/usr/include/postgresql/10/server/storage/latch.h:174:12: note: declared here
extern int WaitLatch(volatile Latch *latch, int wakeEvents, long timeout,
^~~~~~~~~
pg_mystem.cpp: In function ‘void mainMystemProc(Datum)’:
pg_mystem.cpp:532:16: error: ‘BackgroundWorker {aka struct BackgroundWorker}’ has no member named ‘bgw_main’; did you mean ‘bgw_name’?
worker.bgw_main = createMystemChilds;
^~~~~~~~
bgw_name
pg_mystem.cpp:543:95: error: too few arguments to function ‘int WaitLatch(volatile Latch*, int, long int, uint32)’
c = WaitLatch(MyLatch, WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH, 1000L);
^
In file included from pg_mystem.cpp:22:0:
/usr/include/postgresql/10/server/storage/latch.h:174:12: note: declared here
extern int WaitLatch(volatile Latch *latch, int wakeEvents, long timeout,
^~~~~~~~~
pg_mystem.cpp: In function ‘void _PG_init()’:
pg_mystem.cpp:563:16: error: ‘BackgroundWorker {aka struct BackgroundWorker}’ has no member named ‘bgw_main’; did you mean ‘bgw_name’?
worker.bgw_main = mainMystemProc;
^~~~~~~~
bgw_name
<встроенное>: recipe for target 'pg_mystem.o' failed
make: *** [pg_mystem.o] Error 1```
Hi. I have errors? when i try build this. Postgres version 10.7