Just observed a crash due to thinko in the logic that handles NULL
partition key. Absence of null-accepting partition in this case should
have caused an error, instead the current code proceeds with comparison
resulting in crash.
create table p (a int, b char) partition by list (b);
create table p1 partition of p for values in ('a');
insert into p values (1); -- crashes
Attached patch fixes that and adds a test.
pgsql-hackers by date
|Next:||From: Peter Geoghegan||Date: 2017-03-10 03:04:46|
|Subject: Re: amcheck (B-Tree integrity checking tool)|
|Previous:||From: Peter Geoghegan||Date: 2017-03-10 02:54:19|
|Subject: Re: on_dsm_detach() callback and parallel tuplesort BufFile resource management|