Skip to content

Commit f793820

Browse files
authored
Merge pull request #34306 from def-/pr-statement-logging-99
tests: Switch us to 100% statement logging by default
2 parents db37be5 + 7f4c709 commit f793820

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

misc/python/materialize/mzcompose/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,14 @@ def get_variable_system_parameters(
370370
),
371371
VariableSystemParameter("pg_offset_known_interval", "1s", ["100ms", "1s"]),
372372
VariableSystemParameter(
373-
"statement_logging_default_sample_rate", "0.01", ["0", "0.01"]
373+
"statement_logging_default_sample_rate",
374+
"1.0",
375+
["0", "0.01", "0.5", "0.99", "1.0"],
374376
),
375377
VariableSystemParameter(
376-
"statement_logging_max_sample_rate", "0.01", ["0", "0.01"]
378+
"statement_logging_max_sample_rate",
379+
"1.0",
380+
["0", "0.01", "0.5", "0.99", "1.0"],
377381
),
378382
VariableSystemParameter("storage_reclock_to_latest", "true", ["true", "false"]),
379383
VariableSystemParameter(

test/testdrive/session.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ server_version 9.5.0 "Shows the Post
7676
server_version_num 90500 "Shows the PostgreSQL compatible server version as an integer (PostgreSQL)."
7777
sql_safe_updates off "Prohibits SQL statements that may be overly destructive (CockroachDB)."
7878
standard_conforming_strings on "Causes '...' strings to treat backslashes literally (PostgreSQL)."
79-
statement_logging_default_sample_rate 0.01 "The default value of `statement_logging_sample_rate` for new sessions (Materialize)."
80-
statement_logging_max_sample_rate 0.01 "The maximum rate at which statements may be logged. If this value is less than that of `statement_logging_sample_rate`, the latter is ignored (Materialize)."
81-
statement_logging_sample_rate 0.01 "User-facing session variable indicating how many statement executions should be logged, subject to constraint by the system variable `statement_logging_max_sample_rate` (Materialize)."
79+
statement_logging_default_sample_rate 1.0 "The default value of `statement_logging_sample_rate` for new sessions (Materialize)."
80+
statement_logging_max_sample_rate 1.0 "The maximum rate at which statements may be logged. If this value is less than that of `statement_logging_sample_rate`, the latter is ignored (Materialize)."
81+
statement_logging_sample_rate 1.0 "User-facing session variable indicating how many statement executions should be logged, subject to constraint by the system variable `statement_logging_max_sample_rate` (Materialize)."
8282
statement_timeout "1 min" "Sets the maximum allowed duration of INSERT...SELECT, UPDATE, and DELETE operations. If this value is specified without units, it is taken as milliseconds."
8383
superuser_reserved_connections 3 "The number of connections that are reserved for superusers (PostgreSQL)."
8484
TimeZone UTC "Sets the time zone for displaying and interpreting time stamps (PostgreSQL)."

0 commit comments

Comments
 (0)