zilder / pg_dropcache

pg_dropcache is a PostgreSQL extension that invalidates shared_buffers cache
26 stars 5 forks source link

pg_dropcache.c:51:43: error: too few arguments to function call, expected 4, have 3 #7

Open SimoneGiusso opened 3 years ago

SimoneGiusso commented 3 years ago

When I try to install the extension I have the following error:

make install USE_PGXS=1

clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -I. -I./ -I/opt/homebrew/include/postgresql/server -I/opt/homebrew/include/postgresql/internal -I/opt/homebrew/Cellar/icu4c/69.1/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include   -c -o pg_dropcache.o pg_dropcache.c
pg_dropcache.c:51:43: error: too few arguments to function call, expected 4, have 3
                DropRelFileNodeBuffers(rnode, forkNum, 0);
                ~~~~~~~~~~~~~~~~~~~~~~                  ^
/opt/homebrew/include/postgresql/server/storage/bufmgr.h:208:13: note: 'DropRelFileNodeBuffers' declared here
extern void DropRelFileNodeBuffers(struct SMgrRelationData *smgr_reln, ForkNumber *forkNum,
            ^
1 error generated.
make: *** [pg_dropcache.o] Error 1
sgandon commented 1 year ago

yep same me.