Re: Index

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема Re: Index
Дата
Msg-id CAKoxK+4esa5KRVV2uWVWXimGKZf3os=r7sDLnrB8WChUC=rHZw@mail.gmail.com
обсуждение исходный текст
Ответ на Index  (Sonam Sharma <sonams1209@gmail.com>)
Список pgsql-general
On Fri, Oct 25, 2019 at 7:35 AM Sonam Sharma <sonams1209@gmail.com> wrote:
>
> I have created indexes with certain set of columns. Now I want to remove one of the column and add new column. Can
thisdone without dropping the index?
 


If you are going to rename the column the answer is yes.
If you are going to drop the column that would also invalidate and
drop the index.
If you are changing the data type the index should remain in place.

See <https://www.postgresql.org/docs/12/sql-altertable.html> in
particular paragraph about 'DROP COLUMN' and 'SET DATA TYPE'.

Luca



В списке pgsql-general по дате отправления:

Предыдущее
От: Luca Ferrari
Дата:
Сообщение: Re: Quere keep using temporary files
Следующее
От: Ravi Krishna
Дата:
Сообщение: Re: Index