From: | "Owen Jacobson" <ojacobson(at)osl(dot)com> |
---|---|
To: | "Maciej Piekielniak" <piechcio(at)isb(dot)com(dot)pl> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: alter table |
Date: | 2006-02-15 20:09:39 |
Message-ID: | 144D12D7DD4EC04F99241498BB4EEDCC2207C4@nelson.osl.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 fishing around in the pg_ system tables.
-Owen
From | Date | Subject | |
---|---|---|---|
Next Message | Maciej Piekielniak | 2006-02-15 20:29:29 | Re: alter table |
Previous Message | Maciej Piekielniak | 2006-02-15 20:05:05 | Re: alter table |