aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-02-14 19:43:33 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-02-14 19:43:33 -0500
commit03c5a00ea3867f5736da6cedce73b1eea88a98af (patch)
treef2c754e923924e493da3721881dea12cd77b6210 /src/include/postgres.h
parentcbadba8dd632fc0d4162f7d686fec631bce7dfd0 (diff)
downloadpostgresql-03c5a00ea3867f5736da6cedce73b1eea88a98af.tar.gz
postgresql-03c5a00ea3867f5736da6cedce73b1eea88a98af.zip
Move the extern declaration for ExceptionalCondition into c.h.
This is the logical conclusion of our decision to support Assert() in both frontend and backend code: it should be possible to use that after including just c.h. But as things were arranged before, if you wanted to use Assert() in code that might be compiled for either environment, you had to include postgres.h for the backend case. Let's simplify that. Per buildfarm, some of whose members started throwing warnings after commit 0c62356cc added an Assert in src/port/snprintf.c. It's possible that some other src/port files that use the stanza #ifndef FRONTEND #include "postgres.h" #else #include "postgres_fe.h" #endif could now be simplified to just say '#include "c.h"'. I have not tested for that, though, and it'd be unlikely to apply for more than a small number of them.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 3dc62801aa3..bbcb50e41fc 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -25,7 +25,6 @@
* ------- ------------------------------------------------
* 1) variable-length datatypes (TOAST support)
* 2) Datum type + support macros
- * 3) exception handling backend support
*
* NOTES
*
@@ -766,19 +765,4 @@ extern Datum Float8GetDatum(float8 X);
#define Float4GetDatumFast(X) PointerGetDatum(&(X))
#endif
-
-/* ----------------------------------------------------------------
- * Section 3: exception handling backend support
- * ----------------------------------------------------------------
- */
-
-/*
- * Backend only infrastructure for the assertion-related macros in c.h.
- *
- * ExceptionalCondition must be present even when assertions are not enabled.
- */
-extern void ExceptionalCondition(const char *conditionName,
- const char *errorType,
- const char *fileName, int lineNumber) pg_attribute_noreturn();
-
#endif /* POSTGRES_H */