| От | Tom Lane |
|---|---|
| Тема | Re: DROP TABLE CASCADE doesn't drop dependencies |
| Дата | |
| Msg-id | 25327.1549237340@sss.pgh.pa.us обсуждение |
| Ответ на | DROP TABLE CASCADE doesn't drop dependencies (Robins Tharakan <tharakan@gmail.com>) |
| Ответы |
Re: DROP TABLE CASCADE doesn't drop dependencies
|
| Список | pgsql-bugs |
Robins Tharakan <tharakan@gmail.com> writes:
> Is it expected for DROP TABLE CASCADE to find a related table but not drop
> it?
> The case in point, is when the base table is used as a column type.
> This can at least be reproduced in v9.6 and v10, where it silently drops
> the column!
Dropping the column is exactly what is supposed to happen: the scope
of the dependency is defined to be just the column of that type, not
the table containing it.
Not sure if this is documented anyplace in the SGML docs, but I'm
pretty sure we have regression test cases for it.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера