From: Andres Freund Date: Mon, 21 Jan 2019 20:15:02 +0000 (-0800) Subject: Remove superfluous tqual.h includes. X-Git-Tag: REL_12_BETA1~902 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7cc78ad43eb;p=postgresql Remove superfluous tqual.h includes. Most of these had been obsoleted by 568d4138c / the SnapshotNow removal. This is is preparation for moving most of tqual.[ch] into either snapmgr.h or heapam.h, which in turn is in preparation for pluggable table AMs. Author: Andres Freund Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de --- diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 6f5f0a7fa5..d95e6bfa71 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -60,7 +60,6 @@ #include "utils/lsyscache.h" #include "utils/memutils.h" #include "utils/rel.h" -#include "utils/tqual.h" #include "utils/varlena.h" PG_MODULE_MAGIC; diff --git a/contrib/sepgsql/label.c b/contrib/sepgsql/label.c index d7f5d20d63..0b0d21c7f5 100644 --- a/contrib/sepgsql/label.c +++ b/contrib/sepgsql/label.c @@ -35,7 +35,6 @@ #include "utils/lsyscache.h" #include "utils/memutils.h" #include "utils/rel.h" -#include "utils/tqual.h" #include "sepgsql.h" diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 676355501b..bb8379dc12 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -81,7 +81,6 @@ #include "storage/lmgr.h" #include "storage/predicate.h" #include "utils/snapmgr.h" -#include "utils/tqual.h" /* ---------------------------------------------------------------- diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c index 858df3b766..5c2b8034f5 100644 --- a/src/backend/access/nbtree/nbtinsert.c +++ b/src/backend/access/nbtree/nbtinsert.c @@ -24,7 +24,6 @@ #include "storage/lmgr.h" #include "storage/predicate.h" #include "storage/smgr.h" -#include "utils/tqual.h" /* Minimum tree height for application of fastpath optimization */ #define BTREE_FASTPATH_MIN_LEVEL 2 diff --git a/src/backend/access/nbtree/nbtsearch.c b/src/backend/access/nbtree/nbtsearch.c index b5244aa213..92832237a8 100644 --- a/src/backend/access/nbtree/nbtsearch.c +++ b/src/backend/access/nbtree/nbtsearch.c @@ -22,7 +22,6 @@ #include "storage/predicate.h" #include "utils/lsyscache.h" #include "utils/rel.h" -#include "utils/tqual.h" static bool _bt_readpage(IndexScanDesc scan, ScanDirection dir, diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index bec0a93e43..6677926ae6 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -48,7 +48,6 @@ #include "utils/ps_status.h" #include "utils/rel.h" #include "utils/relmapper.h" -#include "utils/tqual.h" uint32 bootstrap_data_checksum_version = 0; /* No checksum */ diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c index 41bac7227a..11ddce2a8b 100644 --- a/src/backend/catalog/aclchk.c +++ b/src/backend/catalog/aclchk.c @@ -74,7 +74,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/catalog.c b/src/backend/catalog/catalog.c index a9d2621a7e..e23f21966f 100644 --- a/src/backend/catalog/catalog.c +++ b/src/backend/catalog/catalog.c @@ -48,7 +48,6 @@ #include "utils/fmgrprotos.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/dependency.c b/src/backend/catalog/dependency.c index 9c3b781d8e..2c54895831 100644 --- a/src/backend/catalog/dependency.c +++ b/src/backend/catalog/dependency.c @@ -81,7 +81,6 @@ #include "utils/guc.h" #include "utils/lsyscache.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index c11bbd19c7..1153688a1c 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -85,7 +85,6 @@ #include "utils/ruleutils.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* Potentially set by pg_upgrade_support functions */ diff --git a/src/backend/catalog/objectaddress.c b/src/backend/catalog/objectaddress.c index c0202d619a..ab3ec7e356 100644 --- a/src/backend/catalog/objectaddress.c +++ b/src/backend/catalog/objectaddress.c @@ -87,7 +87,6 @@ #include "utils/memutils.h" #include "utils/regproc.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* * ObjectProperty diff --git a/src/backend/catalog/pg_collation.c b/src/backend/catalog/pg_collation.c index ea6777f902..74e1e82cb9 100644 --- a/src/backend/catalog/pg_collation.c +++ b/src/backend/catalog/pg_collation.c @@ -30,7 +30,6 @@ #include "utils/pg_locale.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/pg_constraint.c b/src/backend/catalog/pg_constraint.c index 620c7857c9..446b54b9ff 100644 --- a/src/backend/catalog/pg_constraint.c +++ b/src/backend/catalog/pg_constraint.c @@ -36,7 +36,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/pg_conversion.c b/src/backend/catalog/pg_conversion.c index 4e6399a9e6..a3bd8c2c15 100644 --- a/src/backend/catalog/pg_conversion.c +++ b/src/backend/catalog/pg_conversion.c @@ -30,7 +30,6 @@ #include "utils/fmgroids.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* * ConversionCreate diff --git a/src/backend/catalog/pg_db_role_setting.c b/src/backend/catalog/pg_db_role_setting.c index 3a634de8dc..5189c6f7a5 100644 --- a/src/backend/catalog/pg_db_role_setting.c +++ b/src/backend/catalog/pg_db_role_setting.c @@ -18,7 +18,6 @@ #include "catalog/pg_db_role_setting.h" #include "utils/fmgroids.h" #include "utils/rel.h" -#include "utils/tqual.h" void AlterSetting(Oid databaseid, Oid roleid, VariableSetStmt *setstmt) diff --git a/src/backend/catalog/pg_depend.c b/src/backend/catalog/pg_depend.c index 5d34937ea8..2b8f651c99 100644 --- a/src/backend/catalog/pg_depend.c +++ b/src/backend/catalog/pg_depend.c @@ -27,7 +27,6 @@ #include "utils/fmgroids.h" #include "utils/lsyscache.h" #include "utils/rel.h" -#include "utils/tqual.h" static bool isObjectPinned(const ObjectAddress *object, Relation rel); diff --git a/src/backend/catalog/pg_enum.c b/src/backend/catalog/pg_enum.c index 0cdec168c3..d0ff802501 100644 --- a/src/backend/catalog/pg_enum.c +++ b/src/backend/catalog/pg_enum.c @@ -31,7 +31,6 @@ #include "utils/hsearch.h" #include "utils/memutils.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* Potentially set by pg_upgrade_support functions */ diff --git a/src/backend/catalog/pg_inherits.c b/src/backend/catalog/pg_inherits.c index d3f98b3207..00f7957b3d 100644 --- a/src/backend/catalog/pg_inherits.c +++ b/src/backend/catalog/pg_inherits.c @@ -30,7 +30,6 @@ #include "utils/fmgroids.h" #include "utils/memutils.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* * Entry of a hash table used in find_all_inheritors. See below. diff --git a/src/backend/catalog/pg_largeobject.c b/src/backend/catalog/pg_largeobject.c index f6384446e3..1a687028fe 100644 --- a/src/backend/catalog/pg_largeobject.c +++ b/src/backend/catalog/pg_largeobject.c @@ -27,7 +27,6 @@ #include "utils/acl.h" #include "utils/fmgroids.h" #include "utils/rel.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/pg_range.c b/src/backend/catalog/pg_range.c index 08fb13bc47..e6e138babd 100644 --- a/src/backend/catalog/pg_range.c +++ b/src/backend/catalog/pg_range.c @@ -26,7 +26,6 @@ #include "catalog/pg_type.h" #include "utils/fmgroids.h" #include "utils/rel.h" -#include "utils/tqual.h" /* diff --git a/src/backend/catalog/pg_shdepend.c b/src/backend/catalog/pg_shdepend.c index 064bafb800..1619c1c8a7 100644 --- a/src/backend/catalog/pg_shdepend.c +++ b/src/backend/catalog/pg_shdepend.c @@ -65,7 +65,6 @@ #include "utils/acl.h" #include "utils/fmgroids.h" #include "utils/syscache.h" -#include "utils/tqual.h" typedef enum diff --git a/src/backend/commands/alter.c b/src/backend/commands/alter.c index 848eee0123..9229fe1a45 100644 --- a/src/backend/commands/alter.c +++ b/src/backend/commands/alter.c @@ -66,7 +66,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" static Oid AlterObjectNamespace_internal(Relation rel, Oid objid, Oid nspOid); diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c index 98b4b3e7b1..1859fb628f 100644 --- a/src/backend/commands/comment.c +++ b/src/backend/commands/comment.c @@ -28,7 +28,6 @@ #include "utils/builtins.h" #include "utils/fmgroids.h" #include "utils/rel.h" -#include "utils/tqual.h" /* diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 6de8f98e72..d207cd899f 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -61,7 +61,6 @@ #include "utils/pg_locale.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" typedef struct diff --git a/src/backend/commands/event_trigger.c b/src/backend/commands/event_trigger.c index 5b4502bd7f..8adc2cadaf 100644 --- a/src/backend/commands/event_trigger.c +++ b/src/backend/commands/event_trigger.c @@ -45,7 +45,6 @@ #include "utils/lsyscache.h" #include "utils/memutils.h" #include "utils/rel.h" -#include "utils/tqual.h" #include "utils/syscache.h" #include "tcop/utility.h" diff --git a/src/backend/commands/extension.c b/src/backend/commands/extension.c index 36dad4ba94..daf3f51636 100644 --- a/src/backend/commands/extension.c +++ b/src/backend/commands/extension.c @@ -63,7 +63,6 @@ #include "utils/memutils.h" #include "utils/rel.h" #include "utils/snapmgr.h" -#include "utils/tqual.h" #include "utils/varlena.h" diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index dbe96f8d7a..eae2b09830 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -71,7 +71,6 @@ #include "utils/rel.h" #include "utils/syscache.h" #include "utils/typcache.h" -#include "utils/tqual.h" /* * Examine the RETURNS clause of the CREATE FUNCTION statement diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index aa5c6ca872..3edc94308e 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -62,7 +62,6 @@ #include "utils/regproc.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* non-export function prototypes */ diff --git a/src/backend/commands/opclasscmds.c b/src/backend/commands/opclasscmds.c index 950f3bc486..5d73848a8b 100644 --- a/src/backend/commands/opclasscmds.c +++ b/src/backend/commands/opclasscmds.c @@ -49,7 +49,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" static void AlterOpFamilyAdd(AlterOpFamilyStmt *stmt, diff --git a/src/backend/commands/proclang.c b/src/backend/commands/proclang.c index 52eb37d60a..c2e9e41c07 100644 --- a/src/backend/commands/proclang.c +++ b/src/backend/commands/proclang.c @@ -38,7 +38,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" typedef struct diff --git a/src/backend/commands/seclabel.c b/src/backend/commands/seclabel.c index 645a0bf16b..9db8228028 100644 --- a/src/backend/commands/seclabel.c +++ b/src/backend/commands/seclabel.c @@ -24,7 +24,6 @@ #include "utils/fmgroids.h" #include "utils/memutils.h" #include "utils/rel.h" -#include "utils/tqual.h" typedef struct { diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index ffb86ab139..ba35c02894 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -98,7 +98,6 @@ #include "utils/ruleutils.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" #include "utils/typcache.h" diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index f5ad9f7bec..4afd178e97 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -81,7 +81,6 @@ #include "utils/lsyscache.h" #include "utils/memutils.h" #include "utils/rel.h" -#include "utils/tqual.h" #include "utils/varlena.h" diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 8f02db9ddb..7ffaeaffc6 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -58,7 +58,6 @@ #include "utils/rel.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" #include "utils/tuplestore.h" diff --git a/src/backend/commands/tsearchcmds.c b/src/backend/commands/tsearchcmds.c index d812413864..8e5eec22b5 100644 --- a/src/backend/commands/tsearchcmds.c +++ b/src/backend/commands/tsearchcmds.c @@ -46,7 +46,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" static void MakeConfigurationMapping(AlterTSConfigurationStmt *stmt, diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 34c81d5c04..834094898d 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -37,7 +37,6 @@ #include "utils/fmgroids.h" #include "utils/syscache.h" #include "utils/timestamp.h" -#include "utils/tqual.h" /* Potentially set by pg_upgrade_support functions */ Oid binary_upgrade_next_pg_authid_oid = InvalidOid; diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index eaee8ec1ff..e91df2171e 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -50,7 +50,6 @@ #include "utils/memutils.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 8ac4e56ce8..5975c5206b 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -65,7 +65,6 @@ #include "utils/rls.h" #include "utils/ruleutils.h" #include "utils/snapmgr.h" -#include "utils/tqual.h" /* Hooks for plugins to get control in ExecutorStart/Run/Finish/End */ diff --git a/src/backend/executor/execReplication.c b/src/backend/executor/execReplication.c index a3d84f6146..589573b879 100644 --- a/src/backend/executor/execReplication.c +++ b/src/backend/executor/execReplication.c @@ -34,7 +34,6 @@ #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/typcache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/executor/nodeLockRows.c b/src/backend/executor/nodeLockRows.c index 6b9d9bf2b8..5a12b445a6 100644 --- a/src/backend/executor/nodeLockRows.c +++ b/src/backend/executor/nodeLockRows.c @@ -30,7 +30,6 @@ #include "miscadmin.h" #include "storage/bufmgr.h" #include "utils/rel.h" -#include "utils/tqual.h" /* ---------------------------------------------------------------- diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index 975256ba62..d1177b3855 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -104,7 +104,6 @@ #include "utils/syscache.h" #include "utils/timeout.h" #include "utils/timestamp.h" -#include "utils/tqual.h" /* diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index f207c35be9..1d3268b4ab 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -67,7 +67,6 @@ #include "utils/rel.h" #include "utils/snapmgr.h" #include "utils/timestamp.h" -#include "utils/tqual.h" /* ---------- diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index 0612e424de..2c49c711e3 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -88,7 +88,6 @@ #include "utils/memutils.h" #include "utils/rel.h" #include "utils/timeout.h" -#include "utils/tqual.h" #include "utils/syscache.h" #define NAPTIME_PER_CYCLE 1000 /* max sleep time between cycles (1s) */ diff --git a/src/backend/rewrite/rewriteDefine.c b/src/backend/rewrite/rewriteDefine.c index 2da8486e63..3496e6fef7 100644 --- a/src/backend/rewrite/rewriteDefine.c +++ b/src/backend/rewrite/rewriteDefine.c @@ -41,7 +41,6 @@ #include "utils/rel.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" static void checkRuleResultList(List *targetList, TupleDesc resultDesc, diff --git a/src/backend/rewrite/rewriteRemove.c b/src/backend/rewrite/rewriteRemove.c index 4c1d9c43d0..c5e2aed58d 100644 --- a/src/backend/rewrite/rewriteRemove.c +++ b/src/backend/rewrite/rewriteRemove.c @@ -29,7 +29,6 @@ #include "utils/inval.h" #include "utils/lsyscache.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* * Guts of rule deletion. diff --git a/src/backend/rewrite/rewriteSupport.c b/src/backend/rewrite/rewriteSupport.c index 1f74c90ad7..d36611d4a2 100644 --- a/src/backend/rewrite/rewriteSupport.c +++ b/src/backend/rewrite/rewriteSupport.c @@ -24,7 +24,6 @@ #include "utils/lsyscache.h" #include "utils/rel.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c index a8b48fd0ec..a477cb9200 100644 --- a/src/backend/storage/large_object/inv_api.c +++ b/src/backend/storage/large_object/inv_api.c @@ -48,7 +48,6 @@ #include "utils/fmgroids.h" #include "utils/rel.h" #include "utils/snapmgr.h" -#include "utils/tqual.h" /* diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 2461d7f35e..302df16b4a 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -70,7 +70,6 @@ #include "utils/ruleutils.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" #include "utils/typcache.h" #include "utils/varlena.h" #include "utils/xml.h" diff --git a/src/backend/utils/adt/tid.c b/src/backend/utils/adt/tid.c index 8097097f7b..f5ffd12cfc 100644 --- a/src/backend/utils/adt/tid.c +++ b/src/backend/utils/adt/tid.c @@ -32,7 +32,6 @@ #include "utils/builtins.h" #include "utils/rel.h" #include "utils/snapmgr.h" -#include "utils/tqual.h" #include "utils/varlena.h" diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c index 231c370c6b..258a1d64cc 100644 --- a/src/backend/utils/cache/catcache.c +++ b/src/backend/utils/cache/catcache.c @@ -39,7 +39,6 @@ #include "utils/rel.h" #include "utils/resowner_private.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* #define CACHEDEBUG */ /* turns DEBUG elogs on */ diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 3aa2e6e774..007aaf801b 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -90,7 +90,6 @@ #include "utils/resowner_private.h" #include "utils/snapmgr.h" #include "utils/syscache.h" -#include "utils/tqual.h" #define RELCACHE_INIT_FILEMAGIC 0x573266 /* version ID value */ diff --git a/src/backend/utils/cache/ts_cache.c b/src/backend/utils/cache/ts_cache.c index 417c494cd0..0545efc75b 100644 --- a/src/backend/utils/cache/ts_cache.c +++ b/src/backend/utils/cache/ts_cache.c @@ -47,7 +47,6 @@ #include "utils/memutils.h" #include "utils/regproc.h" #include "utils/syscache.h" -#include "utils/tqual.h" /* diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 5dc1d99f78..c0b6231458 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -61,7 +61,6 @@ #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/timeout.h" -#include "utils/tqual.h" static HeapTuple GetDatabaseTuple(const char *dbname); diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index 9f597d9903..e3c66fe113 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -16,7 +16,6 @@ #define TQUAL_H #include "utils/snapshot.h" -#include "access/xlogdefs.h" /* Static variables representing various special snapshot semantics */