Re: ALTER TABLE RENAME column - Mailing list pgsql-hackers

From Jonah H. Harris
Subject Re: ALTER TABLE RENAME column
Date
Msg-id 36e682920611170726g4ff918ccu23284c2bb754a4b3@mail.gmail.com
Whole thread Raw
In response to Re: ALTER TABLE RENAME column  ("Mario Weilguni" <mario.weilguni@icomedias.com>)
Responses Re: ALTER TABLE RENAME column  ("Mario Weilguni" <mario.weilguni@icomedias.com>)
List pgsql-hackers
On 11/17/06, Mario Weilguni <mario.weilguni@icomedias.com> wrote:
> Sounds like this is not done, at least not renaming sequencens and constraints, or am I wrong here?

To rename a sequence or a table:

ALTER TABLE yo_table RENAME TO yo_new_table;
ALTER TABLE yo_sequence RENAME TO yo_new_sequence;

Or am I mistaken?

-- 
Jonah H. Harris, Software Architect | phone: 732.331.1300
EnterpriseDB Corporation            | fax: 732.331.1301
33 Wood Ave S, 2nd Floor            | jharris@enterprisedb.com
Iselin, New Jersey 08830            | http://www.enterprisedb.com/


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Frequent Update Project: Design Overview
Next
From: "Jonah H. Harris"
Date:
Subject: Re: ALTER TABLE RENAME column