BUG #17253: Composite partition table configuration error

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17253: Composite partition table configuration error
Дата
Msg-id 17253-ffda00e1d80f44b4@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17253
Logged by:          재문 이
Email address:      realdreams84@gmail.com
PostgreSQL version: 12.5
Operating system:   centos7.9
Description:

hi 

I created a range hash composite partition as follows. or list range
partition 

create table emp(
    empno int4 NOT null,
        birthday date NOT NULL,
    firstnmvarchar(14) NOT NULL,
    lastnm varchar(16) NOT NULL,
    sex bpchar(1) NOT NULL,
    dt date NOT NULL
) partition by list(sex);

create table p_1 partition of emp for values in('M') partition by
range(dt);
create table p_2 partition of emp for values in('F') partition by
range(dt);

insert into test2_p(select * from emp where dt >= '2000-01-01' and dt <=
'2000-01-31');
Created but cannot insert data

SQL Error [23514]: ERROR: no partition of relation "p_1" found for row¶
Detail: Partition key of the failing row contains ("dt") = (2000-01-12).


create table emp(
    empno int4 NOT null,
        birthday date NOT NULL,
    firstnmvarchar(14) NOT NULL,
    lastnm varchar(16) NOT NULL,
    sex bpchar(1) NOT NULL,
    dt date NOT NULL
) partition by range(dt);

create table p_1 partition of  emp for values from ('2000-01-01') to
('2000-02-01') partition by hash (idx);

insert into p_1_p(select * from emp where dt >= '2000-01-01' and dt <=
'2000-02-01');

The table is created, but data cannot be inserted. Is it not supported or
how to insert and create data, please guide.

thank you


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: BUG #17245: Index corruption involving deduplicated entries
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: BUG #17245: Index corruption involving deduplicated entries