Re: logical column ordering - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: logical column ordering
Date
Msg-id 20150301150922.GT2384@alvh.no-ip.org
Whole thread Raw
In response to Re: logical column ordering  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Jim Nasby wrote:
> On 2/27/15 2:37 PM, Gavin Flower wrote:
> >Might be an idea to allow lists of columns and their starting position.
> >
> >ALTER TABLE customer ALTER COLUMN (job_id, type_id, account_num) SET
> >ORDER 3;
> 
> I would certainly want something along those lines because it would be *way*
> less verbose (and presumably a lot faster) than a slew of ALTER TABLE
> statements.

You know you can issue multiple subcommands in one ALTER TABLE
statement, right?  There's no reason to do more than one table rewrite.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: logical column ordering
Next
From: Alvaro Herrera
Date:
Subject: Re: logical column ordering