Re: [HACKERS] Proposal: Local indexes for partitioned table

Поиск
Список
Период
Сортировка
Искать
От
David Rowley
Тема
Re: [HACKERS] Proposal: Local indexes for partitioned table
Дата
Msg-id
CAKJS1f-MFDJnLX=25GWoTaw8y7K7C0hdzR1Vwa2OMcVMj6ggBQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
Re: Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
Re: [HACKERS] Proposal: Local indexes for partitioned table Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
Re: [HACKERS] Proposal: Local indexes for partitioned table Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <milyutinma@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Greg Stark <stark@mit.edu>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <milyutinma@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Jesper Pedersen <jesper.pedersen@redhat.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <milyutinma@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Proposal: Local indexes for partitioned table David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Proposal: Local indexes for partitioned table Maksim Milyutin <m.milyutin@postgrespro.ru>
On 11 January 2018 at 04:37, Alvaro Herrera  wrote:
> In prior incarnations of the patch, I had an if-test to prevent
> attaching invalid indexes, but I decided to remove it at some point --
> mainly thinking of attaching a partition for which a CREATE INDEX
> CONCURRENTLY was running which already had the index as invalid and was
> later expected to become valid.  I suppose that doesn't really work
> anyway because of locking considerations (you can't attach a partition
> in which CIC is concurrently running, can you).  I'll think some more
> about this case and post an updated version later.

I guess CIC will need to check if the index has a parent index when
setting indisvalid = true, and do likewise to the parent index if all
other siblings are valid.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

В списке pgsql-hackers по дате отправления
От: Rushabh Lathia
Дата:
От: Chapman Flack
Дата:
FAQ