From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: tigran.mkrtchyan <tigran.mkrtchyan@desy.de>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #7502: ALTER COLUMN TYPE processed even if column type matches
Date: Thu, 23 Aug 2012 13:55:12 -0400
Message-ID: <1600.1345744512@sss.pgh.pa.us> (raw)
In-Reply-To: <1345736338-sup-99@alvh.no-ip.org>
References: <E1T4YWs-0004p7-B6@wrigleys.postgresql.org>
<1345736338-sup-99@alvh.no-ip.org>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> So the ALTER TABLE trick is not needed in 9.0, but is useful in previous
> releases. There are optimizations to avoid the table rewrite in certain
> cases in 9.2:
> http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2#Reduce_ALTER_TABLE_rewrites> According to that page, though, a change of varchar(36) to varchar(36)
> would still require a table rewrite, which doesn't make sense to me. Is
> the wiki page inaccurate maybe?
Yeah - you can easily convince yourself by timing it that no rewrite
happens in 9.2.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, tigran.mkrtchyan@desy.de
Subject: Re: BUG #7502: ALTER COLUMN TYPE processed even if column type matches
In-Reply-To: <1600.1345744512@sss.pgh.pa.us>
References: <E1T4YWs-0004p7-B6@wrigleys.postgresql.org> <1345736338-sup-99@alvh.no-ip.org> <1600.1345744512@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox