-
Notifications
You must be signed in to change notification settings - Fork 884
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]: PG Segfault when ETL upsert triggers insert to empty hypertable #7406
Comments
Looks like your reproducer is missing the table definition of the table |
I would have only copied what I could get from the ETL run that crashed. It's probably missing the _tmp table too with the streamed data from external. I'll have a play and see if it can get a minimal reproduction. Didn't want to mess around too much as the DB was in use and the segfaults were causing issues with other systems. |
Minimal repro.
|
Have a core dump - but can't find the debug symbols in the ubuntu repos.
|
Thanks for the repro, I can reproduce the segfault. Stack trace
|
What type of bug is this?
Crash
What subsystems and features are affected?
Data ingestion
What happened?
Sling is running an ETL from external SQL Server DB. I wanted to trigger on insert+update to the target table, to generate new rows when there is a change to get deltas. Postgres would segfault and enter recovery mode. Workaround was to type manual "UPDATE X WHERE" for single record to generate the first delta row in the hyper table, then restart the ETL.
Running truncate on the delta hypertable causes the crash to reappear.
TimescaleDB version affected
timescaledb-2-postgresql-16/noble,now 2.17.1~ubuntu24.04
PostgreSQL version used
postgresql-16/now 16.4-1.pgdg22.04+2
What operating system did you use?
Ubuntu 24.04.01
What installation method did you use?
Deb/Apt
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: