Tom Lane wrote: > I'm trying to determine why thrush has been failing on PG CVS HEAD for > the past few days. Could you try running the attached program on that > machine, and see what it prints? I suspect it will dump core :-( > > Note: you might need to use -D_GNU_SOURCE to get it to compile at all. > > regards, tom lane > > > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > #include <errno.h> > #include <fcntl.h> > > int > main() > { > if (posix_fadvise(fileno(stdin), 0, 0, POSIX_FADV_DONTNEED)) > printf("failed: %s\n", strerror(errno)); > else > printf("OK\n"); > return 0; > } >
$ gcc -D_GNU_SOURCE tom.c -o tom $ ./tom failed: Success Regards Gaetano Mendola ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org