Skip to content

pg: detect when partitioning fails due to timescale compressed tables #3283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

serprex
Copy link
Member

@serprex serprex commented Jul 29, 2025

& fallback to not using ctid

@serprex serprex requested a review from heavycrystal July 29, 2025 23:32
@serprex serprex force-pushed the timescale-full-table-partition branch from e777b89 to 4c953a3 Compare July 30, 2025 00:52
@serprex serprex force-pushed the timescale-full-table-partition branch from 4c953a3 to 9be2ead Compare July 30, 2025 06:13
var pgErr *pgconn.PgError
if config.WatermarkColumn == "ctid" && errors.As(err, &pgErr) &&
pgErr.Message == "transparent decompression only supports tableoid system column" {
// timescale, fallback to full table partition
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a log here to indicate switch

@heavycrystal
Copy link
Contributor

superseded by #3318

@serprex serprex closed this Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants