From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Jim Nasby <decibel(at)decibel(dot)org> |
Cc: | Dan Armbrust <daniel(dot)armbrust(dot)list(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Data conversion tools? |
Date: | 2006-11-17 11:04:02 |
Message-ID: | 20061117110402.GA25463@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Nov 16, 2006 at 06:23:23PM -0700, Jim Nasby wrote:
> Well, for tables it wouldn't be hard to craft a query that spits out
> the appropriate ALTER TABLE RENAME statements. Unfortunately, ALTER
> TABLE doesn't support renaming columns, but it might be safe to run
> an update on the system tables to accomplish that.
Sorry?
# \h alter table
<snip>
ALTER TABLE [ ONLY ] name [ * ]
RENAME [ COLUMN ] column TO new_column
ALTER TABLE name
RENAME TO new_name
<snip>
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2006-11-17 11:15:46 | Re: pg_dump : option --exclude-schema not recognized |
Previous Message | Marcin Mańk | 2006-11-17 11:03:04 | Re: statement_timeout |