Re: How to do faster DML - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: How to do faster DML
Date
Msg-id CAKAnmmLYTVfeiwPKURKK3qWsWHm4Cbhc5+zBY=qTsw+5bcP=KQ@mail.gmail.com
Whole thread Raw
In response to Re: How to do faster DML  (veem v <veema0000@gmail.com>)
Responses Re: How to do faster DML  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
So as I also tested the same as you posted, there has been no change in "ctid" , when I altered the column data type from 'int' to 'bigint' in the table, so that means full table rewriting won't happen in such a scenario.

No it was definitely rewritten - do not depend on the ctid to verify that. Take our word for it, or use pg_relation_filenode('int_test'); before and after, as well as pg_relation_size('int_test');

Cheers,
Greg

pgsql-general by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: pg_stat_activity.query_id <-> pg_stat_statements.queryid
Next
From: Adrian Klaver
Date:
Subject: Re: How to do faster DML