pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpg 10 crashes on int8_avg_combine
3+ messages / 2 participants
[nested] [flat]
* pg 10 crashes on int8_avg_combine
@ 2017-11-14 16:18 Dingyuan Wang <gumblex@aosc.io>
2017-11-14 16:25 ` Re: pg 10 crashes on int8_avg_combine Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Dingyuan Wang @ 2017-11-14 16:18 UTC (permalink / raw)
To: pgsql-general
Hi,
PostgreSQL constantly crashes on this query:
select dategrid, category, sum(cnt) from v_crime_grid group by dategrid,
category;
Where v_crime_grid is a materialized view, have columns "dategrid" int4,
"category" int4, and "cnt" int8.
Version is:
PostgreSQL 10.0 on x86_64-pc-linux-gnu, compiled by gcc (Debian 7.2.0-8)
7.2.0, 64-bit
GDB bt says:
(gdb) bt
#0 int8_avg_combine (fcinfo=0x55bdb92472d8) at
./build/../src/backend/utils/adt/numeric.c:4285
#1 0x000055bdb73b2e4d in advance_combine_function
(pergroupstate=0x55bdb92481b8, pertrans=0x55bdb92471a8,
aggstate=0x55bdb9239378) at ./build/../src/backend/executor/nodeAgg.c:1233
#2 combine_aggregates (aggstate=0x55bdb9239378, pergroup=<optimized
out>) at ./build/../src/backend/executor/nodeAgg.c:1167
#3 0x000055bdb73b36bd in agg_retrieve_direct (aggstate=0x55bdb9239378)
at ./build/../src/backend/executor/nodeAgg.c:2407
#4 ExecAgg (pstate=0x55bdb9239378) at
./build/../src/backend/executor/nodeAgg.c:2124
#5 0x000055bdb73a555d in ExecProcNode (node=0x55bdb9239378) at
./build/../src/include/executor/executor.h:250
#6 ExecutePlan (execute_once=<optimized out>, dest=0x55bdb9238dd8,
direction=<optimized out>, numberTuples=0, sendTuples=<optimized out>,
operation=CMD_SELECT, use_parallel_mode=<optimized out>,
planstate=0x55bdb9239378, estate=0x55bdb9239138) at
./build/../src/backend/executor/execMain.c:1721
#7 standard_ExecutorRun (queryDesc=0x55bdb9202f48, direction=<optimized
out>, count=0, execute_once=<optimized out>) at
./build/../src/backend/executor/execMain.c:363
#8 0x00007f5e48c1a0c5 in pgss_ExecutorRun (queryDesc=0x55bdb9202f48,
direction=ForwardScanDirection, count=0, execute_once=<optimized out>)
at ./build/../contrib/pg_stat_statements/pg_stat_statements.c:889
#9 0x000055bdb74dc456 in PortalRunSelect
(portal=portal@entry=0x55bdb918a7a8, forward=forward@entry=1 '\001',
count=0, count@entry=9223372036854775807, dest=dest@entry=0x55bdb9238dd8)
at ./build/../src/backend/tcop/pquery.c:932
#10 0x000055bdb74dda40 in PortalRun (portal=portal@entry=0x55bdb918a7a8,
count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1
'\001', run_once=run_once@entry=1 '\001',
dest=dest@entry=0x55bdb9238dd8,
altdest=altdest@entry=0x55bdb9238dd8, completionTag=0x7ffd7dd99cd0 "")
at ./build/../src/backend/tcop/pquery.c:773
#11 0x000055bdb74d9580 in exec_simple_query (query_string=0x55bdb9153348
"select dategrid, category, sum(cnt) from v_crime_grid group by
dategrid, category;")
at ./build/../src/backend/tcop/postgres.c:1099
#12 0x000055bdb74db551 in PostgresMain (argc=<optimized out>,
argv=argv@entry=0x55bdb9188c50, dbname=<optimized out>,
username=<optimized out>) at ./build/../src/backend/tcop/postgres.c:4090
#13 0x000055bdb721cd23 in BackendRun (port=0x55bdb91818b0) at
./build/../src/backend/postmaster/postmaster.c:4357
#14 BackendStartup (port=0x55bdb91818b0) at
./build/../src/backend/postmaster/postmaster.c:4029
#15 ServerLoop () at ./build/../src/backend/postmaster/postmaster.c:1753
#16 0x000055bdb746b7bf in PostmasterMain (argc=5, argv=0x55bdb9133e40)
at ./build/../src/backend/postmaster/postmaster.c:1361
#17 0x000055bdb721e834 in main (argc=5, argv=0x55bdb9133e40) at
./build/../src/backend/main/main.c:228
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg 10 crashes on int8_avg_combine
2017-11-14 16:18 pg 10 crashes on int8_avg_combine Dingyuan Wang <gumblex@aosc.io>
@ 2017-11-14 16:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-14 16:51 ` Re: pg 10 crashes on int8_avg_combine Dingyuan Wang <gumblex@aosc.io>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2017-11-14 16:25 UTC (permalink / raw)
To: Dingyuan Wang <gumblex@aosc.io>; +Cc: pgsql-general
Dingyuan Wang <gumblex@aosc.io> writes:
> PostgreSQL 10.0 on x86_64-pc-linux-gnu, compiled by gcc (Debian 7.2.0-8)
> 7.2.0, 64-bit
>
> (gdb) bt
> #0 int8_avg_combine (fcinfo=0x55bdb92472d8) at
> ./build/../src/backend/utils/adt/numeric.c:4285
I think this is the same issue being discussed at
https://www.postgresql.org/message-id/flat/20171110185747.31519.28038%40wrigleys.postgresql.org
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pg 10 crashes on int8_avg_combine
2017-11-14 16:18 pg 10 crashes on int8_avg_combine Dingyuan Wang <gumblex@aosc.io>
2017-11-14 16:25 ` Re: pg 10 crashes on int8_avg_combine Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-11-14 16:51 ` Dingyuan Wang <gumblex@aosc.io>
0 siblings, 0 replies; 3+ messages in thread
From: Dingyuan Wang @ 2017-11-14 16:51 UTC (permalink / raw)
To: pgsql-general
ok, I just avoided it using sum(cnt::int) since cnt is small.
2017-11-15 00:25, Tom Lane:
> Dingyuan Wang <gumblex@aosc.io> writes:
>> PostgreSQL 10.0 on x86_64-pc-linux-gnu, compiled by gcc (Debian 7.2.0-8)
>> 7.2.0, 64-bit
>>
>> (gdb) bt
>> #0 int8_avg_combine (fcinfo=0x55bdb92472d8) at
>> ./build/../src/backend/utils/adt/numeric.c:4285
>
> I think this is the same issue being discussed at
>
> https://www.postgresql.org/message-id/flat/20171110185747.31519.28038%40wrigleys.postgresql.org
>
> regards, tom lane
>
>
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-11-14 16:51 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-14 16:18 pg 10 crashes on int8_avg_combine Dingyuan Wang <gumblex@aosc.io>
2017-11-14 16:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-14 16:51 ` Dingyuan Wang <gumblex@aosc.io>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox