Re: [HACKERS] Partitioned tables and relfilenode
От
Amit Langote
Тема
Re: [HACKERS] Partitioned tables and relfilenode
Дата
Msg-id
e5c3cbd3-1551-d6f8-c9e2-51777d632fd2@lab.ntt.co.jp
Ответ на
Re: [HACKERS] Partitioned tables and relfilenode (Robert Haas)
Список
Дерево обсуждения
[HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Partitioned tables and relfilenode Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Partitioned tables and relfilenode Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] Partitioned tables and relfilenode Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] Partitioned tables and relfilenode Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] Partitioned tables and relfilenode Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
On 2017/04/12 2:41, Robert Haas wrote: > On Tue, Apr 11, 2017 at 9:45 AM, Tom Lane wrote: >> Amit Langote writes: >>> 2. DefineQueryRewrite() may try to scan a partitioned table in the case of >>> converting a table to view, where we must make sure that the table being >>> converted is empty. It's checked by scanning the heap, which we should >>> not do for a partitioned table. Nor should we try to drop the storage >>> once ready to make the table into a REKIND_VIEW relation (because all >>> other checks passed okaying the conversion). >> >> It looks like this patch intends to allow converting a partitioned table >> to a view. I would lobby for refusing the command, instead. There is >> no good reason to allow it, and it might well be a user error. > > Yeah, I agree. Alright. So I made it into two patches instead: 0001 fixes the bug that validateCheckConstraint() tries to scan partitioned tables and 0002 makes trying to convert a partitioned table to a view a user error. Thanks, Amit -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления