diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-10-10 15:16:56 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-10-10 15:16:56 -0400 |
commit | 235eb4db9879397acb57a5dfd25c18291052068a (patch) | |
tree | c9a6a0d1f2d6c1227079964621f7ae9873a563c1 /src/backend/utils/error/elog.c | |
parent | 6291b2546ce729aa912fd070628c6b9eb1f84947 (diff) | |
download | postgresql-235eb4db9879397acb57a5dfd25c18291052068a.tar.gz postgresql-235eb4db9879397acb57a5dfd25c18291052068a.zip |
Simplify our Assert infrastructure a little.
Remove the Trap and TrapMacro macros, which were nearly unused
and confusingly had the opposite condition polarity from the
otherwise-functionally-equivalent Assert macros.
Having done that, it's very hard to justify carrying the errorType
argument of ExceptionalCondition, so drop that too, and just
let it assume everything's an Assert. This saves about 64K
of code space as of current HEAD.
Discussion: https://postgr.es/m/3928703.1665345117@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/error/elog.c')
-rw-r--r-- | src/backend/utils/error/elog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index eb724a9d7f2..6e0a66c29ee 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -1832,8 +1832,7 @@ pg_re_throw(void) } /* Doesn't return ... */ - ExceptionalCondition("pg_re_throw tried to return", "FailedAssertion", - __FILE__, __LINE__); + ExceptionalCondition("pg_re_throw tried to return", __FILE__, __LINE__); } |