Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS
От
Robert Haas
Тема
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS
Дата
Msg-id
CA+TgmoatNUT0mDt8ekEFp9RJQQ+Esa3vvPow+5RXDvwe-vY0RQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Unexpected behavior of DROP VIEW/TABLE IF EXISTS Peter Moser <pitiz29a@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Pavel Stehule <pavel.stehule@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Peter Moser <pitiz29a@gmail.com>
Unexpected behavior of DROP VIEW/TABLE IF EXISTS "David G. Johnston" <david.g.johnston@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Pavel Stehule <pavel.stehule@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS "David G. Johnston" <david.g.johnston@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Pavel Stehule <pavel.stehule@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Tom Lane <tgl@sss.pgh.pa.us>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Peter Moser <pitiz29a@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Isaac Morland <isaac.morland@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Robert Haas <robertmhaas@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Tom Lane <tgl@sss.pgh.pa.us>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Robert Haas <robertmhaas@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Tom Lane <tgl@sss.pgh.pa.us>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Pavel Stehule <pavel.stehule@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS "David G. Johnston" <david.g.johnston@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS Robert Haas <robertmhaas@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS "David G. Johnston" <david.g.johnston@gmail.com>
Re: Unexpected behavior of DROP VIEW/TABLE IF EXISTS "David G. Johnston" <david.g.johnston@gmail.com>
On Tue, Jun 26, 2018 at 1:06 PM, Tom Lane wrote: > Certainly we *could* change it, but it's not at all clear that it's a good > idea. The current behavior seemed sensible when it was implemented, and > it has stood for quite some years now. Now, we have one person > complaining that it wasn't what he expected. If we change the behavior on > the strength of that, will we change it back on the first complaint from > someone else? What about the possibility that the change breaks peoples' > applications? Hmm. I think we generally allow ALTER TABLE to work on non-table relations. For example, ALTER TABLE .. OWNER TO happily accepts a view or materialized view as an argument. I have had my doubts about that policy from time to time (cf. 1489e2f26a4c0318938b3085f50976512f321d84) but it does seem to be the policy (cf. b14206862278347a379f2bb72d92d16fb9dcea45). Is there some reason to think that the same policy that we apply to ALTER should not also apply to DROP? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата: