Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move explain utility functions to src/import #6171

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/import/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set(SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/planner.c
${CMAKE_CURRENT_SOURCE_DIR}/allpaths.c
${CMAKE_CURRENT_SOURCE_DIR}/ht_hypertable_modify.c)
${CMAKE_CURRENT_SOURCE_DIR}/ht_hypertable_modify.c
${CMAKE_CURRENT_SOURCE_DIR}/planner.c
${CMAKE_CURRENT_SOURCE_DIR}/ts_explain.c)

target_sources(${PROJECT_NAME} PRIVATE ${SOURCES})
4 changes: 2 additions & 2 deletions tsl/src/import/ts_explain.c → src/import/ts_explain.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file and its contents are licensed under the Timescale License.
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-TIMESCALE for a copy of the license.
* LICENSE-APACHE for a copy of the license.
*/

/*
Expand Down
14 changes: 8 additions & 6 deletions tsl/src/import/ts_explain.h → src/import/ts_explain.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file and its contents are licensed under the Timescale License.
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-TIMESCALE for a copy of the license.
* LICENSE-APACHE for a copy of the license.
*/

/*
Expand All @@ -19,8 +19,10 @@
#include <nodes/execnodes.h>
#include <nodes/pg_list.h>

void ts_show_scan_qual(List *qual, const char *qlabel, PlanState *planstate, List *ancestors,
ExplainState *es);
#include "export.h"

void ts_show_instrumentation_count(const char *qlabel, int which, PlanState *planstate,
ExplainState *es);
extern TSDLLEXPORT void ts_show_scan_qual(List *qual, const char *qlabel, PlanState *planstate,
List *ancestors, ExplainState *es);

extern TSDLLEXPORT void ts_show_instrumentation_count(const char *qlabel, int which,
PlanState *planstate, ExplainState *es);
1 change: 0 additions & 1 deletion tsl/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@ add_subdirectory(bgw_policy)
add_subdirectory(compression)
add_subdirectory(continuous_aggs)
add_subdirectory(fdw)
add_subdirectory(import)
add_subdirectory(nodes)
add_subdirectory(remote)
2 changes: 0 additions & 2 deletions tsl/src/import/CMakeLists.txt

This file was deleted.