Re: alter table - Mailing list pgsql-sql

From Owen Jacobson
Subject Re: alter table
Date
Msg-id 144D12D7DD4EC04F99241498BB4EEDCC2207C4@nelson.osl.com
Whole thread Raw
In response to alter table  (Maciej Piekielniak <piechcio@isb.com.pl>)
List pgsql-sql
Maciej Piekielniak wrote:
>
> Hello Owen,
>
> Wednesday, February 15, 2006, 8:56:05 PM, you wrote:
> >> ALTER TABLE proc MODIFY name varchar(64) DEFAULT '' NOT NULL;
>
> OJ> Not under 7.4.
>
> Hmm, maybe postgres can copy constraints and properties in
> "create table .. as select"?

What is it you're actually trying to accomplish?  There's got to be a better way, but without understanding what you're
doing(rather than how) it's hard to give you advice. 

CREATE TABLE AS and SELECT INTO only reproduce data, not metadata.  AFAIK duplicating a table's constraints involves
fishingaround in the pg_ system tables. 

-Owen


pgsql-sql by date:

Previous
From: Maciej Piekielniak
Date:
Subject: Re: alter table
Next
From: Stephan Szabo
Date:
Subject: Re: alter table