I have a few places where I lock a large number of table rows (e.g. 1/10 of table content) for further processing with a statement like follows
SELECT ......
FROM my_table
WHERE ......
FOR UPDATE;
But eventually the process doesn't always end up updating the locked rows. My concern is whether the table gets physically modified when I lock rows in a way that defragments the table or its indexes. In other words does locking rows invalidates or upsets table statistics.
This table is expected to be clustered by an index. I am trying to figure out if I need to CLUSTER it after table rows were locked but none were updated.