Skip to content
Snippets Groups Projects
Commit 286eb038 authored by Marcel Huber's avatar Marcel Huber
Browse files

adapted queries.json for pg/monet use

parent d8a508ce
No related branches found
No related tags found
No related merge requests found
{
"postgresql": {
"tuples_only": true,
"execute_adoc": false,
"execute_text": true,
"db_prepare_commands": {
"postgresql": [
"db_prepare_commands": [
"ALTER ROLE {db_user} SET random_page_cost TO 1.0; -- https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-RANDOM-PAGE-COST",
"ALTER ROLE {db_user} SET track_counts TO off; -- https://www.postgresql.org/docs/current/runtime-config-statistics.html#GUC-TRACK-COUNTS",
"-- ALTER ROLE {db_user} SET max_parallel_workers_per_gather TO 0; -- https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-MAX-PARALLEL-WORKERS-PER-GATHER",
"-- SHOW_CONTEXT: errors(*),always,never",
"\\set SHOW_CONTEXT always"
],
"monetdb": [
]
},
"monetdb": {
"echo_format": "\\f tab\n",
"echo_prefix": "select",
"echo_suffix": ";",
"format_text": "sql",
"db_prepare_commands": [
"-- Source this file from within mclient using \\< Queries_MonetDB.sql",
"-- If \"\\f trash\" does not work (usually when using content from stdin), set",
"-- \"--interactive\" option when starting mclient",
"-- disable auto commit",
"\\a",
"-- \\a",
"-- initially disable performance timing (trace command)",
"\\t none",
"set schema {db_name};",
......@@ -31,7 +37,7 @@
],
"monetdb": [
"",
"trace"
""
]
},
"stages_config": {
......@@ -56,7 +62,8 @@
"current-runtime-config": {
"description": "current runtime configuration",
"exec-commit": false,
"queries": [
"queries": {
"postgresql": [
"SHOW enable_seqscan;",
"SHOW seq_page_cost;",
"SHOW random_page_cost;",
......@@ -64,15 +71,27 @@
"SHOW max_parallel_workers_per_gather;",
"SET random_page_cost TO 1.0;",
"SET track_counts TO off; -- <1>"
],
"monetdb": [
"select optimizer;",
"set optimizer='sequential_pipe';",
"select optimizer;"
]
}
},
"vacuum-analyze": {
"description": "Vacuum analyze",
"exec-commit": true,
"queries": {
"\\c -reuse-previous=on postgres postgres": {"query_type": "psql"},
"postgresql": {
"\\c -reuse-previous=on postgres postgres": {
"query_type": "psql"
},
"VACUUM (ANALYZE);": {},
"\\c -reuse-previous=on {db_name} {db_user}": {"query_type": "psql"}
"\\c -reuse-previous=on {db_name} {db_user}": {
"query_type": "psql"
}
}
}
},
"list_queries": {
......@@ -99,7 +118,8 @@
"current-runtime-config": {
"description": "current runtime configuration",
"exec-commit": false,
"queries": [
"queries": {
"postgresql": [
"SHOW enable_seqscan;",
"SHOW seq_page_cost;",
"SHOW random_page_cost;",
......@@ -107,15 +127,27 @@
"SHOW max_parallel_workers_per_gather;",
"SET random_page_cost TO 1.0;",
"SET track_counts TO off; -- <1>"
],
"monetdb": [
"select optimizer;",
"set optimizer='sequential_pipe';",
"select optimizer;"
]
}
},
"vacuum-analyze": {
"description": "Vacuum analyze",
"exec-commit": true,
"queries": {
"\\c -reuse-previous=on postgres postgres": {"query_type": "psql"},
"postgresql": {
"\\c -reuse-previous=on postgres postgres": {
"query_type": "psql"
},
"VACUUM (ANALYZE);": {},
"\\c -reuse-previous=on {db_name} {db_user}": {"query_type": "psql"}
"\\c -reuse-previous=on {db_name} {db_user}": {
"query_type": "psql"
}
}
}
},
"lastname-firstname-customers": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment