Re: Feature request: DEFAULT as input value of function argument

Lists: pgsql-hackers
From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Feature request: DEFAULT as input value of function argument
Date: 2009-09-02 11:18:31
Message-ID: c3a7de1f0909020418l63bf4a15y1209063b39040245@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi, community

The case:

E.g. I need to write a function that should do updates of a table. In
the function I have to specify necessary columns I need to update as
arguments and write update of the columns with this arguments.
Everything is ok but the case when I need to skip some column in
update to use DEFAULT value of the column.

IMHO convenient solution is to make possible to specify something like
COLUMN_DEFAULT as input value of function.

I wonder if it's possible.

--
Regards,
Sergey Konoplev
--
PostgreSQL articles in english & russian
http://gray-hemp.blogspot.com/search/label/postgresql/


From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature request: DEFAULT as input value of function argument
Date: 2009-09-03 10:11:02
Message-ID: c3a7de1f0909030311p690254ffy2a9e258d06bca755@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> IMHO convenient solution is to make possible to specify something like
> COLUMN_DEFAULT as input value of function.
>
> I wonder if it's possible.
>

So, what do you think of it?

--
Regards,
Sergey Konoplev
--
PostgreSQL articles in english & russian
http://gray-hemp.blogspot.com/search/label/postgresql/


From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature request: DEFAULT as input value of function argument
Date: 2009-09-03 14:08:56
Message-ID: 162867790909030708t4e89f18aq9da59cb6d382dc19@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hello

defaults are supported in 8.4

regards
Pavel Stehule

2009/9/3 Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>:
>> IMHO convenient solution is to make possible to specify something like
>> COLUMN_DEFAULT as input value of function.
>>
>> I wonder if it's possible.
>>
>
> So, what do you think of it?
>
> --
> Regards,
> Sergey Konoplev
> --
> PostgreSQL articles in english & russian
> http://gray-hemp.blogspot.com/search/label/postgresql/
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>