Skip to content

Commit f0a7650

Browse files
authored
Merge branch 'main' into dimension-skip
2 parents d7e82e7 + f50906a commit f0a7650

17 files changed

Lines changed: 29 additions & 31 deletions

File tree

.github/workflows/llm-fuzzer.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ jobs:
232232
exit $rc
233233
234234
- name: Write job summary
235-
if: always()
236235
run: |
237236
jq -r 'select(.type == "result") | "## LLM Fuzzer Result\n\n"
238237
+ (.result // "No result produced.")
@@ -255,26 +254,25 @@ jobs:
255254
if-no-files-found: ignore
256255

257256
- name: Check for reproducer
258-
if: always()
259257
id: repro
260258
run: test -f ~/llm-fuzzer-repro.sql && echo "found=true" >> $GITHUB_OUTPUT || true
261259

262260
- name: Rebuild after fuzzing
263-
if: always() && steps.repro.outputs.found == 'true'
261+
if: steps.repro.outputs.found == 'true'
264262
run: |
265263
set -xeu
266264
pkill -U "$(id -u)" postgres || true
267265
sleep 2
268266
269267
- name: Restore clean PostgreSQL build
270-
if: always() && steps.repro.outputs.found == 'true'
268+
if: steps.repro.outputs.found == 'true'
271269
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
272270
with:
273271
path: ~/${{ env.PG_SRC_DIR }}
274272
key: ${{ steps.cache-postgresql.outputs.cache-primary-key }}
275273

276274
- name: Reinstall PostgreSQL and TimescaleDB
277-
if: always() && steps.repro.outputs.found == 'true'
275+
if: steps.repro.outputs.found == 'true'
278276
run: |
279277
set -xeu
280278
cd ~/$PG_SRC_DIR && make install
@@ -284,10 +282,12 @@ jobs:
284282
make -j$(getconf _NPROCESSORS_ONLN) -C build install
285283
286284
- name: Run the reproducer
287-
if: always() && steps.repro.outputs.found == 'true'
285+
if: steps.repro.outputs.found == 'true'
288286
run: |
289287
set -xeu
290288
289+
sudo coredumpctl rm
290+
291291
export PATH=$HOME/$PG_INSTALL_DIR/bin:$PATH
292292
293293
export PGDATA=verify_db

.unreleased/pr_9767

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes: #9767 Skip dropped chunks when trying to remove ts_cagg_invalidation_trigger

sql/updates/2.22.1--2.23.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ BEGIN
3232
EXECUTE format('DROP TRIGGER IF EXISTS ts_cagg_invalidation_trigger ON %s;', rel);
3333
END LOOP;
3434
FOR rel IN SELECT format('%I.%I', schema_name, table_name)::regclass
35-
FROM _timescaledb_catalog.chunk ch
35+
FROM _timescaledb_catalog.chunk ch WHERE NOT dropped
3636
LOOP
3737
EXECUTE format('DROP TRIGGER IF EXISTS ts_cagg_invalidation_trigger ON %s;', rel);
3838
END LOOP;

src/bgw/job.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ extern TSDLLEXPORT void ts_bgw_job_validate_schedule_interval(Interval *schedule
102102
extern TSDLLEXPORT char *ts_bgw_job_validate_timezone(Datum timezone);
103103

104104
extern TSDLLEXPORT bool ts_is_telemetry_job(BgwJob *job);
105-
ScanTupleResult ts_bgw_job_change_owner(TupleInfo *ti, void *data);
106105

107106
extern TSDLLEXPORT Oid ts_bgw_job_get_funcid(BgwJob *job);
108107
extern TSDLLEXPORT const char *ts_bgw_job_function_call_string(BgwJob *job);

src/import/planner.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ extern TSDLLEXPORT List *ts_build_path_tlist(PlannerInfo *root, Path *path);
5252

5353
extern TSDLLEXPORT Node *ts_replace_nestloop_params(PlannerInfo *root, Node *expr);
5454

55-
extern void ts_ExecSetTupleBound(int64 tuples_needed, PlanState *child_node);
56-
5755
#if PG18_GE
5856
/* In PG18, child ems are not added to ec_members
5957
* but need to be maintained in separate Lists.

test/expected/agg_bookends-15.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,14 @@ INSERT INTO btest_numeric VALUES('2020-01-20T09:00:43', 30.5);
505505
:PREFIX SELECT first(temp, time) FROM ONLY btest;
506506
--- QUERY PLAN ---
507507
Aggregate (actual rows=1.00 loops=1)
508-
-> Seq Scan on btest (actual rows=0.00 loops=1)
508+
-> Result (actual rows=0.00 loops=1)
509+
One-Time Filter: false
509510

510511
:PREFIX SELECT last(temp, time) FROM ONLY btest;
511512
--- QUERY PLAN ---
512513
Aggregate (actual rows=1.00 loops=1)
513-
-> Seq Scan on btest (actual rows=0.00 loops=1)
514+
-> Result (actual rows=0.00 loops=1)
515+
One-Time Filter: false
514516

515517
-- test constants
516518
:PREFIX SELECT first(100, 100) FROM btest;

test/expected/agg_bookends-16.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,14 @@ INSERT INTO btest_numeric VALUES('2020-01-20T09:00:43', 30.5);
505505
:PREFIX SELECT first(temp, time) FROM ONLY btest;
506506
--- QUERY PLAN ---
507507
Aggregate (actual rows=1.00 loops=1)
508-
-> Seq Scan on btest (actual rows=0.00 loops=1)
508+
-> Result (actual rows=0.00 loops=1)
509+
One-Time Filter: false
509510

510511
:PREFIX SELECT last(temp, time) FROM ONLY btest;
511512
--- QUERY PLAN ---
512513
Aggregate (actual rows=1.00 loops=1)
513-
-> Seq Scan on btest (actual rows=0.00 loops=1)
514+
-> Result (actual rows=0.00 loops=1)
515+
One-Time Filter: false
514516

515517
-- test constants
516518
:PREFIX SELECT first(100, 100) FROM btest;

test/expected/agg_bookends-17.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,14 @@ INSERT INTO btest_numeric VALUES('2020-01-20T09:00:43', 30.5);
465465
:PREFIX SELECT first(temp, time) FROM ONLY btest;
466466
--- QUERY PLAN ---
467467
Aggregate (actual rows=1.00 loops=1)
468-
-> Seq Scan on btest (actual rows=0.00 loops=1)
468+
-> Result (actual rows=0.00 loops=1)
469+
One-Time Filter: false
469470

470471
:PREFIX SELECT last(temp, time) FROM ONLY btest;
471472
--- QUERY PLAN ---
472473
Aggregate (actual rows=1.00 loops=1)
473-
-> Seq Scan on btest (actual rows=0.00 loops=1)
474+
-> Result (actual rows=0.00 loops=1)
475+
One-Time Filter: false
474476

475477
-- test constants
476478
:PREFIX SELECT first(100, 100) FROM btest;

test/expected/agg_bookends-18.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,14 @@ INSERT INTO btest_numeric VALUES('2020-01-20T09:00:43', 30.5);
465465
:PREFIX SELECT first(temp, time) FROM ONLY btest;
466466
--- QUERY PLAN ---
467467
Aggregate (actual rows=1.00 loops=1)
468-
-> Seq Scan on btest (actual rows=0.00 loops=1)
468+
-> Result (actual rows=0.00 loops=1)
469+
One-Time Filter: false
469470

470471
:PREFIX SELECT last(temp, time) FROM ONLY btest;
471472
--- QUERY PLAN ---
472473
Aggregate (actual rows=1.00 loops=1)
473-
-> Seq Scan on btest (actual rows=0.00 loops=1)
474+
-> Result (actual rows=0.00 loops=1)
475+
One-Time Filter: false
474476

475477
-- test constants
476478
:PREFIX SELECT first(100, 100) FROM btest;

test/sql/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
113113
alter_table_memory.sql
114114
bgw_launcher.sql
115115
c_unit_tests.sql
116-
cache_invalidate_uaf.sql
117116
copy_memory_usage.sql
118117
metadata.sql
119118
multi_transaction_index.sql
@@ -127,6 +126,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
127126
if(USE_TELEMETRY)
128127
list(APPEND TEST_FILES telemetry.sql)
129128
endif()
129+
130+
list(APPEND SOLO_TESTS cache_invalidate_uaf.sql)
130131
endif(CMAKE_BUILD_TYPE MATCHES Debug)
131132

132133
if((${PG_VERSION_MAJOR} GREATER_EQUAL "17"))

0 commit comments

Comments
 (0)