summaryrefslogtreecommitdiff
path: root/contrib/oid2name
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-04-08 13:59:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-04-08 13:59:52 -0400
commit9c0a0de4c91b2dc911220d769cf2c5f754cfcb90 (patch)
tree89914351156e63b0776cbb8efe312fd4a49be0b7 /contrib/oid2name
parent372728b0d49552641f0ea83d9d2e08817de038fa (diff)
downloadpostgresql-9c0a0de4c91b2dc911220d769cf2c5f754cfcb90.tar.gz
Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h.
Everything of use to frontend code should now appear in the _d.h files, and making this change frees us from needing to worry about whether the catalog header files proper are frontend-safe. Remove src/interfaces/ecpg/ecpglib/pg_type.h entirely, as the previous commit reduced it to a confusingly-named wrapper around pg_type_d.h. In passing, make test_rls_hooks.c follow project convention of including our own files with #include "" not <>. Discussion: https://postgr.es/m/23690.1523031777@sss.pgh.pa.us
Diffstat (limited to 'contrib/oid2name')
-rw-r--r--contrib/oid2name/oid2name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c
index 769e527384..63e360c4c5 100644
--- a/contrib/oid2name/oid2name.c
+++ b/contrib/oid2name/oid2name.c
@@ -9,7 +9,7 @@
*/
#include "postgres_fe.h"
-#include "catalog/pg_class.h"
+#include "catalog/pg_class_d.h"
#include "fe_utils/connect.h"
#include "libpq-fe.h"