stat() vs cygwin

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема stat() vs cygwin
Дата
Msg-id 20080411134256.29e98a5f@mha-laptop
обсуждение исходный текст
Ответы Re: stat() vs cygwin  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: stat() vs cygwin  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
It seems my fix for stat() broke cygwin, because it doesn't have
dosmaperr() available. The way I see it there are two ways to fix this:

1) Don't apply the stat fix for cygwin.

2) Make our dosmaperr() function be used on cygwin.


I don't know if the fix is actually needed on cygwin. Can someone with
access to such an environment test it and see?

The easy check, easier than the table, goes something along the line
of:
CREATE TABLE test(t int);
INSERT INTO test(t) SELECT * FROM generate_series(1,100000);
SELECT pg_relation_size('t');
SELECT pg_sleep(5);
SELECT pg_relation_size('t');


Without the patch on win32, the first pg_relation_size comes out as 0,
and the second one correct. With the patch, they come out equal. They
should, of course, always come out equal.

//Magnus


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Adding pipelining support to set returning functions
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Free Space Map data structure