Re: currawong is not a happy animal

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: currawong is not a happy animal
Дата
Msg-id
9003.1389985579@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
currawong is not a happy animal David Rowley <dgrowleyml@gmail.com>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal Tom Lane <tgl@sss.pgh.pa.us>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal David Rowley <dgrowleyml@gmail.com>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal Tom Lane <tgl@sss.pgh.pa.us>
Re: currawong is not a happy animal Alvaro Herrera <alvherre@2ndquadrant.com>
Re: currawong is not a happy animal Tom Lane <tgl@sss.pgh.pa.us>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal Amit Kapila <amit.kapila16@gmail.com>
Re: currawong is not a happy animal Tom Lane <tgl@sss.pgh.pa.us>
Re: currawong is not a happy animal Robert Haas <robertmhaas@gmail.com>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal Andrew Dunstan <andrew@dunslane.net>
Re: currawong is not a happy animal Tom Lane <tgl@sss.pgh.pa.us>
Re: currawong is not a happy animal Alvaro Herrera <alvherre@2ndquadrant.com>
Re: currawong is not a happy animal Magnus Hagander <magnus@hagander.net>
Re: currawong is not a happy animal Craig Ringer <craig@2ndquadrant.com>
Andrew Dunstan  writes:
> Not quite out of the woods yet. We're getting this regression failure on 
> Windows/MSVC (see 
> ):

>    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
Дата:
От: Tom Lane
Дата:
FAQ