We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Relevant system information:
Describe the bug Postgres crashes when executing query like select min_n(metric, 2) from table;
Data set (1 000 000+ rows) In postgres log i can see message: server process was terminated by signal 11: Segmentation fault.
To Reproduce Steps to reproduce the behavior: CREATE TABLE public.test("time" timestamptz NOT NULL, duration int4 NULL);
SELECT create_hypertable('test', 'time');
Do $$ Begin For r in 1..1000000 loop Insert into test values(now() + (r||'s')::interval, r); end loop; End; $$;
Select min_n(duration, 2) from test;
Expected behavior Get result with smallest numbers (1, 2)
Actual behavior Process crushes with segmentation fault (but it works on small data sets, with four rows).
The text was updated successfully, but these errors were encountered:
May be related to
#755
Sorry, something went wrong.
@oddfrost thank you for reporting the issue. I have reproduced the issue that you've experienced. We'll consider fixing it in an upcoming release.
04e5a41
@oddfrost If you haven't noticed yet, the fix has been included in the latest 1.17.0 release.
WireBaron
Successfully merging a pull request may close this issue.
Relevant system information:
Describe the bug
Postgres crashes when executing query like
select
min_n(metric, 2)
from table;
Data set (1 000 000+ rows)
In postgres log i can see message: server process was terminated by signal 11: Segmentation fault.
To Reproduce
Steps to reproduce the behavior:
CREATE TABLE public.test("time" timestamptz NOT NULL, duration int4 NULL);
SELECT create_hypertable('test', 'time');
Do $$
Begin
For r in 1..1000000 loop
Insert into test values(now() + (r||'s')::interval, r);
end loop;
End;
$$;
Select min_n(duration, 2) from test;
Expected behavior
Get result with smallest numbers (1, 2)
Actual behavior
Process crushes with segmentation fault (but it works on small data sets, with four rows).
The text was updated successfully, but these errors were encountered: