Skip to content
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

Fix segfault in cagg_validate_query #6655

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Fix segfault in cagg_validate_query #6655

merged 1 commit into from
Feb 15, 2024

Conversation

svenklemm
Copy link
Member

With the input to pg_parse_query does not contain anything to parse it will return NIL. This patch adds a check for NIL to prevent the segfault that would otherwise happen later in the code.

Fixes: #6625

Copy link

@fabriziomello, @gayyappan: please review this pull request.

Powered by pull-review

When the input to pg_parse_query does not contain anything to parse
it will return NIL. This patch adds a check for NIL to prevent the
segfault that would otherwise happen later in the code.

Fixes: #6625
@svenklemm svenklemm merged commit 7ab0566 into main Feb 15, 2024
42 checks passed
@svenklemm svenklemm deleted the cagg_validate_query branch February 15, 2024 05:04
@svenklemm svenklemm added this to the TimescaleDB 2.14.2 milestone Feb 19, 2024
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Feb 19, 2024
This release contains bug fixes since the 2.14.1 release.
We recommend that you upgrade at the next available opportunity.

**Bugfixes**
* timescale#6655 Fix segfault in cagg_validate_query
* timescale#6660 Fix refresh on empty CAgg with variable bucket
* timescale#6670 Don't try to compress osm chunks

**Thanks**
* @kav23alex for reporting a segfault in cagg_validate_query
svenklemm added a commit that referenced this pull request Feb 20, 2024
This release contains bug fixes since the 2.14.1 release.
We recommend that you upgrade at the next available opportunity.

**Bugfixes**
* #6655 Fix segfault in cagg_validate_query
* #6660 Fix refresh on empty CAgg with variable bucket
* #6670 Don't try to compress osm chunks

**Thanks**
* @kav23alex for reporting a segfault in cagg_validate_query
svenklemm added a commit that referenced this pull request Feb 20, 2024
This release contains bug fixes since the 2.14.1 release.
We recommend that you upgrade at the next available opportunity.

**Bugfixes**
* #6655 Fix segfault in cagg_validate_query
* #6660 Fix refresh on empty CAgg with variable bucket
* #6670 Don't try to compress osm chunks

**Thanks**
* @kav23alex for reporting a segfault in cagg_validate_query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Segmentation fault on execution of the request cagg_validate_query
4 participants