Skip to content

Conversation

timescale-automation
Copy link
Member

This is an automated backport of #8496: Fix dropping chunks with foreign keys.
The original issue is #7181.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix dropping chunks with foreign keys

Note I have following make installcheck failure:


Built target regresscheck-shared
SKIPS: 
t/001_job_crash_log.pl ................. ok   
t/002_logrepl_decomp_marker.pl ......... ok    
t/003_mvcc_cagg.pl ..................... ok   
t/004_truncate_or_delete_spin_lock.pl .. 4/? 
#   Failed test 'verify AccessExclusiveLock was taken'
#   at t/004_truncate_or_delete_spin_lock.pl line 168.
#          got: '_timescaledb_internal.compress_hyper_2_3_chunk
# _timescaledb_internal._hyper_1_1_chunk'
#     expected: '_timescaledb_internal._hyper_1_1_chunk
# _timescaledb_internal.compress_hyper_2_3_chunk'
# Looks like you failed 1 test of 10.
t/004_truncate_or_delete_spin_lock.pl .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests 
t/005_recompression_spin_lock_test.pl .. ok    

Test Summary Report
-------------------
t/004_truncate_or_delete_spin_lock.pl (Wstat: 256 (exited 1) Tests: 10 Failed: 1)
  Failed test:  10
  Non-zero exit status: 1
Files=5, Tests=45, 13 wallclock secs ( 0.02 usr  0.01 sys +  2.17 cusr  1.47 csys =  3.67 CPU)
Result: FAIL
make[3]: *** [tsl/test/CMakeFiles/provecheck-t.dir/build.make:71: tsl/test/CMakeFiles/provecheck-t] Error 1
make[2]: *** [CMakeFiles/Makefile2:1984: tsl/test/CMakeFiles/provecheck-t.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1364: test/CMakeFiles/installcheck.dir/rule] Error 2
make: *** [Makefile:325: installcheck] Error 2

Fixes #7181

Disable-check: commit-count

@timescale-automation timescale-automation added the is-auto-backport PR created by backport automation label Aug 20, 2025
@timescale-automation timescale-automation enabled auto-merge (rebase) August 20, 2025 11:48
@fabriziomello
Copy link
Member

Closing because it will be part of the next release 2.22.0

auto-merge was automatically disabled August 25, 2025 23:31

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants