SV: design partioning scheme for selecting from latest partition

2021-03-22 Thread Niels Jespersen
>Fra: Francisco Olarte >Sendt: 22. marts 2021 20:04 >Til: Niels Jespersen >Cc: pgsql-general@lists.postgresql.org >Emne: Re: design partioning scheme for selecting from latest partition > >Niels: > >On Mon, Mar 22, 2021 at 3:40 PM Niels Jespersen wrote: >... &

Re: design partioning scheme for selecting from latest partition

2021-03-22 Thread Francisco Olarte
Niels: On Mon, Mar 22, 2021 at 3:40 PM Niels Jespersen wrote: ... > version int not null, ... > ) partition by list (version); > > -- Add tens of partitions > -- Load millions of rows in each partition > -- Then I want to be able to do this wothout scanning all partitions for the > highest v

design partioning scheme for selecting from latest partition

2021-03-22 Thread Niels Jespersen
Hello I have a table partitioned like this drop table if exists s cascade; create table s ( version int not null, a int, b int ) partition by list (version); -- Add tens of partitions -- Load millions of rows in each partition -- Then I want to be able to do this wothout