Re: resizing a varchar column on 8.3.8 - Mailing list pgsql-general

From Scott Marlowe
Subject Re: resizing a varchar column on 8.3.8
Date
Msg-id AANLkTinC3MVefJPrHWiE4A2=sjc8kdUjmb1vN7+CUJQS@mail.gmail.com
Whole thread Raw
In response to resizing a varchar column on 8.3.8  (Jon Hoffman <jon@foursquare.com>)
List pgsql-general
On Thu, Jan 27, 2011 at 1:57 PM, Jon Hoffman <jon@foursquare.com> wrote:
> This was originally discussed on this list
> here: http://postgresql.1045698.n5.nabble.com/Smartest-way-to-resize-a-column-td1915892.html
> Tom Lane suggested doing the resize in a BEGIN block at least to verify that
> "\d tablename" reflects the catalog update.
> - Jon

Good point.  Best practices are to do all DDL in a transaction if
possible.  But a lot of folks come from databases that do stupid and
unpredictable things when you try to do DDL in a transaction (ok,
that's basically damned near all of them except a couple of odd
rarities like informix)

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Adding ddl audit trigger
Next
From: Lawrence Cohan
Date:
Subject: Re: Adding ddl audit trigger