Re: currawong is not a happy animal

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: currawong is not a happy animal
Дата
Msg-id 9003.1389985579@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: currawong is not a happy animal  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: currawong is not a happy animal  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Not quite out of the woods yet. We're getting this regression failure on 
> Windows/MSVC (see 
> <http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2014-01-17%2018%3A20%3A35>):

>    SELECT test_shm_mq(32768, (select string_agg(chr(32+(random()*96)::int), '') from generate_series(1,400)), 10000,
1);
> ! ERROR:  queue size must be at least 472262143 bytes

It looks like this is computing a bogus value:

const Size shm_mq_minimum_size =MAXALIGN(offsetof(shm_mq, mq_ring)) + MAXIMUM_ALIGNOF;

I seem to recall that we've previously found that you have to write
MAXALIGN(offsetof(shm_mq, mq_ring[0])) + MAXIMUM_ALIGNOF;

to keep MSVC happy with a reference to an array member in offsetof.
        regards, tom lane



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [Lsf-pc] Re: Linux kernel impact on PostgreSQL performance (summary v2 2014-1-17)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add %z support to elog/ereport?