From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: hisanori.kobayashi.bp@nttdata.com
Subject: BUG #16500: SQL Abend. select multi_key_columns_range_partition_table
Date: Thu, 18 Jun 2020 09:35:27 +0000
Message-ID: <16500-d1613f2a78e1e090@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16500
Logged by: Kobayashi Hisanori
Email address: hisanori.kobayashi.bp@nttdata.com
PostgreSQL version: 12.2
Operating system: Windows10
Description:
I found that abend(crash) sql.
select ... from multi_key_columns_range_partition_table
where key_col1 <= xxx and key_col2 = yyy ;
Same for 12.2 and 12.3
I am not good at English, so I will send a reproduction script.
------------------------------
-- ***** execute from psql
--
-- ***** Create Test Table
drop table if exists pt_test01 ;
create table pt_test01
( kbn smallint not null
, nen char(4) not null
, mm char(2) not null
, cd char(3) not null
, val00 numeric(15, 3)
, usr varchar(10)
)
partition by range(kbn, nen) with (oids=false)
;
create table pt_test01_1_2019 partition of pt_test01 for values from (1,
'2019') to (1, '2020') ;
create table pt_test01_1_2020 partition of pt_test01 for values from (1,
'2020') to (1, '2021') ;
create table pt_test01_2_2019 partition of pt_test01 for values from (2,
'2019') to (2, '2020') ;
create table pt_test01_2_2020 partition of pt_test01 for values from (2,
'2020') to (2, '2021') ;
--
-- ***** Test SQL
select * from pt_test01 where kbn <= 1 and nen = '2020' ;
--
-- ***** Result:ABEND/Connection Closed
-- ***** Message(Japanese)
-- サーバとの接続が想定外にクローズされました
-- おそらく要求の処理前または処理中にサーバが異常終了
-- したことを意味しています。
-- サーバへの接続が失われました。リセットしています: 失敗。
-- ***** Google translation
-- The connection with the server was closed unexpectedly
-- Server crashed, probably before or during processing of the
request
-- It means that you have done it.
-- The connection to the server has been lost. Resetting: failed.
------------------------------
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, hisanori.kobayashi.bp@nttdata.com
Subject: Re: BUG #16500: SQL Abend. select multi_key_columns_range_partition_table
In-Reply-To: <16500-d1613f2a78e1e090@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