Re: new compiler warnings
От
Tom Lane
Тема
Re: new compiler warnings
Дата
Msg-id
24446.1318973105@sss.pgh.pa.us
Ответ на
Re: new compiler warnings (Kevin Grittner)
Список
Дерево обсуждения
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Andrew Dunstan <andrew@dunslane.net>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings Peter Eisentraut <peter_e@gmx.net>
Re: new compiler warnings Robert Haas <robertmhaas@gmail.com>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Robert Haas <robertmhaas@gmail.com>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings Robert Haas <robertmhaas@gmail.com>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Andrew Dunstan <andrew@dunslane.net>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Robert Haas <robertmhaas@gmail.com>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings Peter Eisentraut <peter_e@gmx.net>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings Peter Eisentraut <peter_e@gmx.net>
Re: new compiler warnings Robert Haas <robertmhaas@gmail.com>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Greg Stark <stark@mit.edu>
Re: new compiler warnings "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: new compiler warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: new compiler warnings Robert Haas <robertmhaas@gmail.com>
"Kevin Grittner" writes: > Tom Lane wrote: >> I don't think the assert is a good idea. If it ever did happen, >> that would promote the problem from "corrupted data in the log" to >> "database crash". > ... on a --enable-cassert build. > If we think it's even remotely possible that it could happen, maybe > we should do the loop. That would change the current "missing log > information" situation to "interleaved log information". The logging protocol is hosed either way. > But if we think it would be better for data to be missing from the > log than interleaved, the Assert could be removed and it still > suppresses the error (at least on my machine). As far as getting rid of the compiler warning is concerned, I find that the rc = write(...);(void) rc; suggestion works for me (gcc 4.6.1). I'm inclined to do that (and document why) rather than put in looping code that will not make anything better. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: