From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | digoal(at)126(dot)com |
Subject: | BUG #15320: = any (array(SQL)) ERROR: invalid memory alloc request size 1073741824 |
Date: | 2018-08-10 02:00:56 |
Message-ID: | 153386645615.1296.15033397940289482159@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 15320
Logged by: Zhou Digoal
Email address: digoal(at)126(dot)com
PostgreSQL version: 11beta2
Operating system: CentOS 7.x x64
Description:
the error is:
```
create table tbl (uid int8 primary key, pid int8);
insert into tbl select generate_series(1,100000000), random()*100000;
postgres=# explain select count(*) from tbl where uid = any (array(select
uid from tbl limit 100000000)) ;
QUERY PLAN
-------------------------------------------------------------------------------------
Aggregate (cost=1635653.23..1635653.24 rows=1 width=8)
InitPlan 1 (returns $0)
-> Limit (cost=0.00..1635635.23 rows=100000000 width=8)
-> Seq Scan on tbl tbl_1 (cost=0.00..2289638.88 rows=139984688
width=8)
-> Index Only Scan using pk on tbl (cost=0.57..17.98 rows=10 width=0)
Index Cond: (uid = ANY ($0))
(6 rows)
postgres=# explain analyze select count(*) from tbl where uid = any
(array(select uid from tbl limit 100000000)) ;
ERROR: XX000: invalid memory alloc request size 1073741824
LOCATION: repalloc, mcxt.c:1050
Time: 24133.852 ms (00:24.134)
```
is it a bug?
thanks,
best regards.
digoal
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-08-10 02:26:34 | Re: BUG #15320: = any (array(SQL)) ERROR: invalid memory alloc request size 1073741824 |
Previous Message | Peter Geoghegan | 2018-08-09 17:58:55 | Re: BUG #15309: ERROR: catalog is missing 1 attribute(s) for relid 760676 when max_parallel_maintenance_workers > 0 |