Re: Keep elog(ERROR) and ereport(ERROR) calls in the cold path
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-11-23T20:36:55Z
Lists: pgsql-hackers
On Sat, 21 Nov 2020 at 03:26, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote: > > I did tests of elog_ereport_attribute_cold_v4.patch on an oldish Mac > Intel laptop with pgbench scale 1 (default), and then: > > pgbench -S -T 60 > > master: tps = 8251.883229 (excluding connections establishing) > patched: tps = 9556.836232 (excluding connections establishing) > > pgbench -S -T 60 -M prepared > > master: tps = 14713.821837 (excluding connections establishing) > patched: tps = 16200.066185 (excluding connections establishing) > > So from that this seems like an easy win. Well, that makes it look pretty good. If we can get 10-15% on some machines without making things slower on any other machines, then that seems like a good win to me. Thanks for testing that. David
Commits
-
Stop gap fix for __attribute__((cold)) compiler bug in MinGW 8.1
- 687f61634475 14.0 landed
-
Tidy up definitions of pg_attribute_hot and pg_attribute_cold
- b0727ae99b70 14.0 landed
-
Fix unportable usage of __has_attribute
- 1fa22a43a56e 14.0 landed
-
Improve compiler code layout in elog/ereport ERROR calls
- 913ec71d682e 14.0 landed
-
Define pg_attribute_cold and pg_attribute_hot macros
- 697e1d02f53f 14.0 landed