Re: Remove mention in docs that foreign keys on partitioned tablesare not supported

Поиск
Список
Период
Сортировка
Искать
От
Amit Langote
Тема
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported
Дата
Msg-id
8ec0c75f-3553-2d52-493a-3fd0f7bb2061@lab.ntt.co.jp
Ответ на
Список
Дерево обсуждения
Remove mention in docs that foreign keys on partitioned tables arenot supported David Rowley <david.rowley@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported David Rowley <david.rowley@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tables arenot supported Rui DeSousa <rui.desousa@icloud.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Listing triggers in partitions (was Re: Remove mention in docs thatforeign keys on partitioned tables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) David Rowley <david.rowley@2ndquadrant.com>
Re: Listing triggers in partitions (was Re: Remove mention in docsthat foreign keys on partitioned tables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Treat <rob@xzilla.net>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported "David G. Johnston" <david.g.johnston@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tables are not supported Tom Lane <tgl@sss.pgh.pa.us>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tables are not supported Tom Lane <tgl@sss.pgh.pa.us>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tables are not supported Tom Lane <tgl@sss.pgh.pa.us>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tables are not supported Tom Lane <tgl@sss.pgh.pa.us>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Robert Haas <robertmhaas@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported "David G. Johnston" <david.g.johnston@gmail.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Remove mention in docs that foreign keys on partitioned tablesare not supported David Rowley <david.rowley@2ndquadrant.com>
On 2018/07/03 11:49, Robert Haas wrote:
> On Mon, Jul 2, 2018 at 1:46 AM, Ashutosh Bapat
>  wrote:
>> This constraint was added to the partitioned table and inherited from
>> there. If user wants to drop that constraint for some reason, this
>> error message doesn't help. The error message tells why he can't drop
>> it, but doesn't tell, directly or indirectly, the user what he should
>> do in order to drop it.
> 
> That doesn't really sound like an actual problem to me.  If the error
> is that the constraint is inherited, that suggests that the solution
> is to find the place from which it got inherited and drop it there.
> And that's in fact what you have to do.  What's the problem?  I mean,
> we could add a hint, but it's possible to make yourself sound dumb by
> giving hints that are basically obvious implications from the error
> message.  Nobody wants this sort of thing:
> 
> rhaas=# drop table foo;
> ERROR:  table "foo" does not exist
> HINT: Try dropping a table with a different name that does exist, or
> first create this table before trying to drop it.
> 
> A hint here wouldn't be as silly as that, but I think it is
> unnecessary.  I doubt there's likely to be much confusion here.

I have to agree with that.  "cannot drop inherited ..." conveys enough for
a user to find out more.

Thanks,
Amit


В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Michael Paquier
Дата:
FAQ