Skip to content

Commit f05e301

Browse files
committed
Remove regression tests on smart statement timeout.
Should rethink test principles of time-dependendent features to make it more stable.
1 parent 186252d commit f05e301

4 files changed

+2
-142
lines changed

expected/smart_statement_timeout.out

-94
This file was deleted.

postprocessing.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ aqo_timeout_handler(void)
630630
if (aqo_statement_timeout == 0)
631631
elog(NOTICE, "[AQO] Time limit for execution of the statement was expired. AQO tried to learn on partial data.");
632632
else
633-
elog(NOTICE, "[AQO] Time limit for execution of the statement was expired. AQO tried to learn on partial data. Timeout is %ld", max_timeout_value);
633+
elog(NOTICE, "[AQO] Time limit for execution of the statement was expired. AQO tried to learn on partial data. Timeout is "INT64_FORMAT, max_timeout_value);
634634

635635
learnOnPlanState(timeoutCtl.queryDesc->planstate, (void *) &ctx);
636636
MemoryContextSwitchTo(oldctx);
@@ -827,7 +827,7 @@ aqo_ExecutorEnd(QueryDesc *queryDesc)
827827
if ( aqo_learn_statement_timeout && aqo_statement_timeout > 0 && error >= 0.1)
828828
{
829829
int64 fintime = increase_smart_timeout();
830-
elog(NOTICE, "[AQO] Time limit for execution of the statement was increased. Current timeout is %ld", fintime);
830+
elog(NOTICE, "[AQO] Time limit for execution of the statement was increased. Current timeout is "UINT64_FORMAT, fintime);
831831
}
832832

833833
pfree(stat);

regress_schedule

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test: parallel_workers
1414
test: plancache
1515
test: update_functions
1616
test: statement_timeout
17-
test: smart_statement_timeout
1817
test: temp_tables
1918
test: top_queries
2019
test: relocatable

sql/smart_statement_timeout.sql

-45
This file was deleted.

0 commit comments

Comments
 (0)