From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Dimitri Fontaine <dim(at)hi-media(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: alter + preserving dependencies |
Date: | 2008-05-07 09:23:44 |
Message-ID: | 48217520.5020205@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dimitri Fontaine wrote:
> Le 7 mai 08 à 07:52, Tom Lane a écrit :
>
>> Dimitri Fontaine <dim(at)hi-media(dot)com> writes:
>>> Could we consider ALTER VIEW ALTER COLUMN ... SET DEFAULT ...;?
>>
>> We could if we hadn't already done it five or so years ago.
>> Or am I missing what you need here?
>
> My 8.3.1 installation psql \h only gives me:
> Syntax:
> ALTER VIEW name RENAME TO newname
Ah, you use ALTER TABLE:
ALTER TABLE my_view ALTER COLUMN view_column DEFAULT expr;
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Smet | 2008-05-07 09:30:16 | Re: [NOVICE] encoding problems |
Previous Message | Dimitri Fontaine | 2008-05-07 09:05:38 | Re: alter + preserving dependencies |