| От | Tom Lane |
|---|---|
| Тема | Re: cascading column drop to index predicates |
| Дата | |
| Msg-id | 16404.1072109286@sss.pgh.pa.us обсуждение |
| Ответ на | Re: cascading column drop to index predicates (Rod Taylor <pg@rbt.ca>) |
| Ответы |
Re: cascading column drop to index predicates
|
| Список | pgsql-hackers |
Rod Taylor <pg@rbt.ca> writes:
> I think Andreas is trying to argue that if you drop column b from index
> (a, b) that the index should be converted into index(a) -- assuming of
> course there isn't already an index(a).
That seems to be well outside the charter of DROP CASCADE. I think we
either drop or don't drop; we don't go building new indexes, which is
what this would take. There are also definitional problems --- for
instance, if the index is UNIQUE, does it transmogrify into a UNIQUE
constraint on A alone (which would most likely fail)?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера