Hi, On 2015-12-20 02:49:13 +1300, David Rowley wrote: > Alternatively, if there was some way to mark the path as cold from within > the path, rather than from the if() condition before the path, then we > could perhaps do something in the elog() macro instead. I just couldn't > figure out a way to do this.
I just was thinking about this, and it turns out that __attribute__((cold)) does what we need here. We could just mark elog_start() and errstart() as cold, and afaict that should do the trick. Thanks to Jakub from #gcc for pointing that out. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers