Re: [HACKERS] pg_test_fsync problem

2011-01-24 Thread Bruce Momjian
Tom Lane wrote: > I wrote: > > He's complaining that it dies with EINVAL. > > > I notice that (1) it's using O_DIRECT even though the printout claims > > otherwise, and (2) it's writing from a buffer that has no better than > > char alignment, which is certainly not OK for O_DIRECT. Either one >

Re: [HACKERS] pg_test_fsync problem

2011-01-22 Thread Tom Lane
I wrote: > He's complaining that it dies with EINVAL. > I notice that (1) it's using O_DIRECT even though the printout claims > otherwise, and (2) it's writing from a buffer that has no better than > char alignment, which is certainly not OK for O_DIRECT. Either one > of those could plausibly res

Re: [HACKERS] pg_test_fsync problem

2011-01-22 Thread Tom Lane
Robert Haas writes: > On Sat, Jan 22, 2011 at 2:46 AM, Vladimir Kokovic > wrote: >> Something is wrong with contrib/pg_test_fsync on Ubuntu 10.10 maverick. > What, specifically, is wrong? He's complaining that it dies with EINVAL. I notice that (1) it's using O_DIRECT even though the printout

Re: [HACKERS] pg_test_fsync problem

2011-01-22 Thread Robert Haas
On Sat, Jan 22, 2011 at 2:46 AM, Vladimir Kokovic wrote: > Something is wrong with contrib/pg_test_fsync on Ubuntu 10.10 maverick. What, specifically, is wrong? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (p

[HACKERS] pg_test_fsync problem

2011-01-22 Thread Vladimir Kokovic
Hi, Something is wrong with contrib/pg_test_fsync on Ubuntu 10.10 maverick. I've changed method: static void die(char *str) { fprintf(stderr, "%s errno=%d(%s)\n", str, errno, strerror(errno)); exit(1); } === root@vlD-kuci:/media/sda5/postgresql-9.1devel# ./build.sh set -e cd /media/sda5/postgres