FAQ

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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedJun 20, '06 at 2:53a
activeJun 23, '06 at 4:53p
posts4
users2
websitepostgresql.org...
irc#postgresql

2 users in discussion

Gaetano Mendola: 2 posts Tom Lane: 2 posts

People

Translate

site design / logo © 2022 Grokbase