From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: 723609220apple@gmail.com
Subject: BUG #18414: When the key values are the same, the memory limit is exceeded when making a hash join
Date: Thu, 28 Mar 2024 12:51:15 +0000
Message-ID: <18414-6ace9250aab89519@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 18414
Logged by: linfeng chen
Email address: 723609220apple@gmail.com
PostgreSQL version: 16.2
Operating system: openeuler
Description:
/*
* Did this batch receive ALL of the tuples from its
* parent batch? That would indicate that further
* repartitioning isn't going to help (the hash values
* are probably all the same).
*/
create table t1(a int);
create table t2(a int);
insert into t1 values(1);
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t2 select * from t1;
select count(*) from t1 join t2 on t1.a=t2.a;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, 723609220apple@gmail.com
Subject: Re: BUG #18414: When the key values are the same, the memory limit is exceeded when making a hash join
In-Reply-To: <18414-6ace9250aab89519@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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