From: | brian ally <brian(at)zijn-digital(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: What is the point of create or replace view command |
Date: | 2006-06-05 04:37:39 |
Message-ID: | 4483B513.7080606@zijn-digital.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Chris Velevitch wrote:
> On 6/5/06, Tom Lane wrote:
>
>> "Chris Velevitch" <chris(dot)velevitch(at)gmail(dot)com> writes:
>> > What is the point of the create or replace view command if you can't
>> > change the column and data types ?
>>
>> You might as well ask what's the point of CREATE OR REPLACE FUNCTION,
>> when it doesn't let you change the function's parameter list or result
>> type. The analogy to result type is pretty exact, in fact.
>
>
> Yes, please, what is point of CREATE OR REPLACE FUNCTION, when it
> doesn't let you change the function's parameter list or result type?
>
>
The way that user-created functions work allows one to have the same
function name with different numbers & types of parameters. Thus, you
must specify the param list when replacing.
Now, having default values for params might be nice. Is that possible?
brian
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Allen | 2006-06-05 04:49:45 | Re: What is the point of create or replace view command |
Previous Message | Chris Velevitch | 2006-06-05 04:25:47 | Re: What is the point of create or replace view command |