-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SQL function cagg_validate_query
With this function is possible to execute the Continuous Aggregate query validation over an arbitrary query string, without the need to actually create the Continuous Aggregate. It can be used, for example, to check for most frequent queries maybe using `pg_stat_statements`, validate them and check if there are queries that potenttialy can turned into a Continuous Aggregate.
- Loading branch information
1 parent
483ddcd
commit af5cc2a
Showing
18 changed files
with
666 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Implements: #6307 Add SQL function cagg_validate_query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,3 +194,6 @@ CREATE FUNCTION @[email protected]_chunks( | |
|
||
DROP PROCEDURE IF EXISTS _timescaledb_functions.repair_relation_acls(); | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.makeaclitem(regrole, regrole, text, bool); | ||
|
||
DROP FUNCTION IF EXISTS _timescaledb_functions.cagg_validate_query(TEXT, BOOLEAN, TEXT, TEXT, TEXT, TEXT, TEXT); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
set(SOURCES | ||
${CMAKE_CURRENT_SOURCE_DIR}/common.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/finalize.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/create.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/finalize.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/insert.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/invalidation_threshold.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/invalidation.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/materialize.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/options.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/refresh.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/repair.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/invalidation.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/invalidation_threshold.c) | ||
${CMAKE_CURRENT_SOURCE_DIR}/utils.c) | ||
target_sources(${TSL_LIBRARY_NAME} PRIVATE ${SOURCES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.