Re: Where do I enter commands? - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: Where do I enter commands?
Date
Msg-id 20151025154154.GC2622@hermes.hilbert.loc
Whole thread Raw
In response to Re: Where do I enter commands?  (David Blomstrom <david.blomstrom@gmail.com>)
Responses Re: Where do I enter commands?  (David Blomstrom <david.blomstrom@gmail.com>)
List pgsql-general
On Sun, Oct 25, 2015 at 08:32:43AM -0700, David Blomstrom wrote:

> Someone said when you add a new column in Postgre, it's appended to the end
> of the table. Does that mean that's where it has to stay, or can you
> rearrange columns

No, unless you drop/re-create the table (manually or with

    pg_dump -t <table>

But you can use a view over the table to show a desired
column order if you so wish.

Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


pgsql-general by date:

Previous
From: Rob Sargent
Date:
Subject: Re: Where do I enter commands?
Next
From: David Blomstrom
Date:
Subject: Recursive Arrays 101