-
Notifications
You must be signed in to change notification settings - Fork 848
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
[Bug]: On-insert decompression after schema changes may not work properly #5577
Labels
Comments
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 17, 2023
On compressed tables 3 schema levels are active simultaneously; in build_scankeys all of them appears - and the hypertable level slot was access using sibling table indices. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 20, 2023
On compressed tables 3 schema levels are active simultaneously; in build_scankeys all of them appears - and the hypertable level slot was access using sibling table indices. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 21, 2023
On compressed tables 3 schema levels are active simultaneously; in build_scankeys all of them appears - and the hypertable level slot was access using sibling table indices. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 24, 2023
On compressed tables 3 schema levels are active simultaneously; in build_scankeys all of them appears - and the hypertable level slot was access using sibling table indices. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 24, 2023
On compressed tables 3 schema levels are active simultaneously; in build_scankeys all of them appears - and the hypertable level slot was access using sibling table indices. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 25, 2023
On compressed tables 3 schema levels are active simultaneously; in build_scankeys all of them appears - and the hypertable level slot was access using sibling table indices. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 25, 2023
On compressed hypertables 3 schema levels are in use simultaneously * main - hypertable level * chunk - inheritance level * compressed chunk In the build_scankeys method all of them appear - as slot have their fields represented as a for a row of the main hypertable. Accessing the slot by the attribut numbers of the chunks may lead to indexing mismatches if there are differences between the schemes. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 27, 2023
On compressed hypertables 3 schema levels are in use simultaneously * main - hypertable level * chunk - inheritance level * compressed chunk In the build_scankeys method all of them appear - as slot have their fields represented as a for a row of the main hypertable. Accessing the slot by the attribut numbers of the chunks may lead to indexing mismatches if there are differences between the schemes. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 27, 2023
On compressed hypertables 3 schema levels are in use simultaneously * main - hypertable level * chunk - inheritance level * compressed chunk In the build_scankeys method all of them appear - as slot have their fields represented as a for a row of the main hypertable. Accessing the slot by the attribut numbers of the chunks may lead to indexing mismatches if there are differences between the schemes. Fixes: timescale#5577
kgyrtkirk
added a commit
to kgyrtkirk/timescaledb
that referenced
this issue
Apr 27, 2023
On compressed hypertables 3 schema levels are in use simultaneously * main - hypertable level * chunk - inheritance level * compressed chunk In the build_scankeys method all of them appear - as slot have their fields represented as a for a row of the main hypertable. Accessing the slot by the attribut numbers of the chunks may lead to indexing mismatches if there are differences between the schemes. Fixes: timescale#5577
kgyrtkirk
added a commit
that referenced
this issue
Apr 27, 2023
On compressed hypertables 3 schema levels are in use simultaneously * main - hypertable level * chunk - inheritance level * compressed chunk In the build_scankeys method all of them appear - as slot have their fields represented as a for a row of the main hypertable. Accessing the slot by the attribut numbers of the chunks may lead to indexing mismatches if there are differences between the schemes. Fixes: #5577
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What type of bug is this?
Incorrect result
What subsystems and features are affected?
Compression
What happened?
This could lead to the same kind of incorrect result issues as #5553 ; from a slightly different angle.
(time, some_col, segmentby_col)
time,segmentby_col
some_col
is dropped--
what happens:
slot
is at the main hypertable leveldecompressor->out_rel
is at the standard inherited hypertable table levelscankeys
are acquired at this leveldecompressor->in_rel
is at the compressed levelscankey
build; the actual value is extracted from theslot
; but by using theout_rel
level indexes ; which may lead to problems..even segfault if the drops are propelry planned :DTimescaleDB version affected
main
PostgreSQL version used
15.2
What operating system did you use?
Debian12
What installation method did you use?
Source
What platform did you run on?
Not applicable
Relevant log output and stack trace
How can we reproduce the bug?
case producing segfault:
The text was updated successfully, but these errors were encountered: