Column reset all values

Поиск
Список
Период
Сортировка
От otar shavadze
Тема Column reset all values
Дата
Msg-id CAG-jOyDg7TZ_x1rsL=URVc51sPxfNvi1YMWsLQmeqT1eCtVsTg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Column reset all values
Re: Column reset all values
Список pgsql-general
postgres version 12
I have very simple update query, like this:

update my_table 
set 
col = NULL
where
col IS NOT NULL;

my_table contains few million rows, col is indexed column

Fastest way would be   alter table, drop column and then add column again, but I can't do this just because on this column   depends bunch of views and materialized views.

No much hope, but still asking, Is there some another way to just reset column all values? ( with NULL in my case)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [EXTERNAL] Re: PostgreSQL-12 replication failover, pg_rewindfails
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: Column reset all values