Re: Converting char to varchar automatically

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
Cc: hari(dot)fuchs(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Converting char to varchar automatically
Date: 2014-10-06 23:16:56
Message-ID: 27400.1412637416@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> writes:
> Just a heads-up: each of those ALTER's will rewrite the table, so unless your database is tiny this will be a slow process. There's ways to work around that, but they're significantly more complicated.

I think he's trying to get rid of all the blank-padding he's got right
now, so table rewrites are unavoidable.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-10-06 23:20:31 Re: Converting char to varchar automatically
Previous Message Gavin Flower 2014-10-06 23:10:08 Re: table versioning approach (not auditing)