Column reset all values - Mailing list pgsql-general

From otar shavadze
Subject Column reset all values
Date
Msg-id CAG-jOyDg7TZ_x1rsL=URVc51sPxfNvi1YMWsLQmeqT1eCtVsTg@mail.gmail.com
Whole thread Raw
Responses Re: Column reset all values  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Re: Column reset all values  (Olivier Gautherot <ogautherot@gautherot.net>)
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [EXTERNAL] Re: PostgreSQL-12 replication failover, pg_rewindfails
Next
From: "Peter J. Holzer"
Date:
Subject: Re: Column reset all values