]> granicus.if.org Git - postgresql/commit
Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Apr 2018 17:59:52 +0000 (13:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Apr 2018 17:59:52 +0000 (13:59 -0400)
commit9c0a0de4c91b2dc911220d769cf2c5f754cfcb90
tree89914351156e63b0776cbb8efe312fd4a49be0b7
parent372728b0d49552641f0ea83d9d2e08817de038fa
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
27 files changed:
contrib/oid2name/oid2name.c
contrib/vacuumlo/vacuumlo.c
src/bin/initdb/initdb.c
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_rewind/filemap.c
src/bin/pg_rewind/libpq_fetch.c
src/bin/pg_upgrade/check.c
src/bin/pg_upgrade/function.c
src/bin/pg_upgrade/info.c
src/bin/pg_upgrade/pg_upgrade.c
src/bin/pg_upgrade/relfilenode.c
src/bin/pg_upgrade/version.c
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/psql/tab-complete.c
src/bin/scripts/vacuumdb.c
src/common/relpath.c
src/fe_utils/print.c
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/pg_type.h [deleted file]
src/interfaces/ecpg/ecpglib/sqlda.c
src/interfaces/ecpg/ecpglib/typename.c
src/test/modules/test_rls_hooks/test_rls_hooks.c
src/tools/findoidjoins/findoidjoins.c