From: | Craig James <cjames(at)emolecules(dot)com> |
---|---|
To: | Jan Lentfer <Jan(dot)Lentfer(at)web(dot)de> |
Cc: | Ankur Kaushik <ankurkaushik(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Adding Column in Specific Position of table |
Date: | 2015-04-29 15:28:35 |
Message-ID: | CAFwQ8rdEJ5-Z6fz4=Wh0e--X64scLGRYGYLpwVi+TK2Rc9cEmw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Wed, Apr 29, 2015 at 2:51 AM, Jan Lentfer <Jan(dot)Lentfer(at)web(dot)de> wrote:
> Hi, this is not currently possibly with just an ALTER TABLE. Regards, Jan.
>
> Von meinem iPad gesendet
>
> > Am 29.04.2015 um 11:43 schrieb Ankur Kaushik <ankurkaushik(at)gmail(dot)com>:
> >
> >
> > Hi ,
> >
> > I can I alter table to add column at specific position ,
> >
> > below
> >
> > Table : Post
> >
> >
> > Column : a
> > b
> > d
> >
> > Want to add new column c before d or after b.
>
It's probably a bad idea, too. If your application depends on the ordering
of the columns, I guarantee you'll regret it. It's a recipe for mysterious
bugs.
Every SQL query should name the columns. If you do that, the column
ordering doesn't matter.
Craig
From | Date | Subject | |
---|---|---|---|
Next Message | Ferrell, Denise CTR NSWCDD, Z11 | 2015-04-29 19:04:08 | Graphic Interpretations of Data |
Previous Message | Jan Lentfer | 2015-04-29 09:57:12 | Re: Adding Column in Specific Position of table |