Re: Fixing MSVC's inability to detect elog(ERROR) does not return
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-24T00:27:31Z
Lists: pgsql-hackers
David Rowley <dgrowleyml@gmail.com> writes: > I did a quick check of the postgres.exe size with and without this > change. It does save about 13KB, but that seems to be entirely from > the /std:c11 flag. None is due to the compiler emitting less code > after elog(ERROR) / ereport(ERROR) :-( Hmmm ... but you did check that in fact we can remove such known-dead code and not get a warning now? regards, tom lane
Commits
-
Rename pg_builtin_integer_constant_p to pg_integer_constant_p
- 8e2acda2b098 19 (unreleased) landed
-
Teach MSVC that elog/ereport ERROR doesn't return
- 59c2f03d1ece 19 (unreleased) landed