Skip to content

Commit

Permalink
Remove unused headers
Browse files Browse the repository at this point in the history
  • Loading branch information
za-arthur committed May 29, 2024
1 parent b6929dc commit ce7d279
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
6 changes: 0 additions & 6 deletions src/parquet_fdw.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#include "postgres.h"
#include "fmgr.h"

#include "access/reloptions.h"
#include "catalog/pg_foreign_table.h"
#include "commands/defrem.h"
#include "commands/explain.h"
#include "foreign/fdwapi.h"
#include "optimizer/planmain.h"
#include "utils/builtins.h"
#include "utils/guc.h"
#include "utils/elog.h"


PG_MODULE_MAGIC;
Expand Down
14 changes: 1 addition & 13 deletions src/parquet_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
#include <list>
#include <set>

#include "arrow/api.h"
#include "arrow/io/api.h"
#include "arrow/array.h"
#include "parquet/arrow/reader.h"
#include "parquet/arrow/schema.h"
#include "parquet/exception.h"
#include "parquet/file_reader.h"
#include "parquet/statistics.h"

#include "heap.hpp"
#include "exec_state.hpp"
#include "reader.hpp"
#include "common.hpp"
Expand All @@ -31,12 +26,10 @@ extern "C"
#include "postgres.h"

#include "access/htup_details.h"
#include "access/parallel.h"
#include "access/sysattr.h"
#include "access/nbtree.h"
#include "access/reloptions.h"
#include "access/sysattr.h"
#include "catalog/pg_foreign_table.h"
#include "catalog/pg_type.h"
#include "commands/defrem.h"
#include "commands/explain.h"
#include "executor/spi.h"
Expand All @@ -45,7 +38,6 @@ extern "C"
#include "foreign/fdwapi.h"
#include "miscadmin.h"
#include "nodes/execnodes.h"
#include "nodes/nodeFuncs.h"
#include "nodes/makefuncs.h"
#include "optimizer/cost.h"
#include "optimizer/pathnode.h"
Expand All @@ -55,23 +47,19 @@ extern "C"
#include "parser/parse_coerce.h"
#include "parser/parse_func.h"
#include "parser/parse_oper.h"
#include "parser/parse_type.h"
#include "utils/builtins.h"
#include "utils/jsonb.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
#include "utils/memdebug.h"
#include "utils/regproc.h"
#include "utils/rel.h"
#include "utils/timestamp.h"
#include "utils/typcache.h"

#if PG_VERSION_NUM < 120000
#include "nodes/relation.h"
#include "optimizer/var.h"
#else
#include "access/table.h"
#include "access/relation.h"
#include "optimizer/optimizer.h"
#endif

Expand Down
4 changes: 0 additions & 4 deletions src/reader.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#include <list>

#include "arrow/api.h"
#include "arrow/io/api.h"
#include "arrow/array.h"
#include "parquet/arrow/reader.h"
#include "parquet/arrow/schema.h"
#include "parquet/exception.h"
#include "parquet/file_reader.h"
#include "parquet/statistics.h"

Expand Down
2 changes: 0 additions & 2 deletions src/reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define PARQUET_FDW_READER_HPP

#include <memory>
#include <mutex>
#include <set>
#include <vector>

Expand All @@ -15,7 +14,6 @@ extern "C"
#include "fmgr.h"
#include "access/tupdesc.h"
#include "executor/tuptable.h"
#include "nodes/pg_list.h"
#include "storage/spin.h"
}

Expand Down

0 comments on commit ce7d279

Please sign in to comment.