Skip to content

Commit

Permalink
Move explain utility functions to src/import
Browse files Browse the repository at this point in the history
This moves EXPLAIN utility functions into apache to make it available
to all custom nodes. Since these are copies of static postgres functions
there is no reason for them to be TSL licensed.
  • Loading branch information
svenklemm committed Oct 8, 2023
1 parent 7dc14ac commit 8476adc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
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.

0 comments on commit 8476adc

Please sign in to comment.