Re: Less than ideal error reporting in pg_stat_statements

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Less than ideal error reporting in pg_stat_statements
Дата
Msg-id
5582.1443821378@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Less than ideal error reporting in pg_stat_statements Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Less than ideal error reporting in pg_stat_statements David Rowley <david.rowley@2ndquadrant.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Marti Raudsepp <marti@juffo.org>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Andrew Dunstan <andrew@dunslane.net>
Re: Less than ideal error reporting in pg_stat_statements Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Andrew Dunstan <andrew@dunslane.net>
Re: Less than ideal error reporting in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Less than ideal error reporting in pg_stat_statements Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Less than ideal error reporting in pg_stat_statements Peter Geoghegan <pg@heroku.com>
Re: Less than ideal error reporting in pg_stat_statements Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Less than ideal error reporting in pg_stat_statements Jim Nasby <Jim.Nasby@BlueTreble.com>
Peter Geoghegan  writes:
> It would be nice to get this committed before the next point releases
> are tagged, since I've now heard a handful of complaints like this.

I'm not too impressed with this bit:	/* Allocate buffer; beware that off_t might be wider than size_t */
-	if (stat.st_size <= MaxAllocSize)
+	if (stat.st_size <= SIZE_MAX)		buf = (char *) malloc(stat.st_size);

because there are no, zero, not one uses of SIZE_MAX in our code today,
and I do not see such a symbol required by the POSIX v2 spec either.
Perhaps this will work, but you're asking us to introduce a brand new
portability hazard just hours before a wrap deadline.  That is not
happening.

Other than that, this seems roughly sane, though I've not read it in
detail or tested it.  Does anyone have an objection to trying to squeeze
in something along this line?
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Peter Geoghegan
Дата:
От: Peter Geoghegan
Дата:
FAQ