To speed up an update on a large postgresql table, I disable the indexes :
UPDATE pg_index SET indisready=false WHERE indrelid = ( SELECT oid FROM pg_class WHERE relname='mytable')
Then run my update :
update mytable set ......
Then enable my indexes :
UPDATE pg_index SET indisready=true WHERE indrelid = ( SELECT oid FROM pg_class WHERE relname='mytable');
Then reindex :
REINDEX table mytable;
Is the last reindex necessary considering that my update is about columns not concerned by my indexes ?
Thanks for your help.