Re: What does "Table rewrite" mean? - Mailing list pgsql-docs

From Michael Paquier
Subject Re: What does "Table rewrite" mean?
Date
Msg-id 20180120101807.GB1311@paquier.xyz
Whole thread Raw
In response to Re: What does "Table rewrite" mean?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: What does "Table rewrite" mean?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-docs
On Fri, Jan 19, 2018 at 11:33:43AM -0500, Tom Lane wrote:
> It means reading the whole table and writing it out in some modified
> form (for instance, with some column transformed into a new datatype).
> It's not "dangerous" in any way ... but if you've got many GB of data in
> the table and you can't afford to have the table locked for a long time,
> then it's something to avoid.

Yeah that can be costly. Note that WAL corresponding to this data needs
to be generated as well.
--
Michael

Attachment

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: typo: overlay
Next
From: PG Doc comments form
Date:
Subject: overlapping ranges