From: | Steve Crawford <scrawford(at)pinpointresearch(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Create temporary function |
Date: | 2008-04-23 21:26:31 |
Message-ID: | 480FA987.2060705@pinpointresearch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom Lane wrote:
> Steve Crawford <scrawford(at)pinpointresearch(dot)com> writes:
>
>> I have recently run across situations that might benefit from the
>> ability to create a temporary function.
>>
>
> You can do that today, as long as you don't mind schema-qualifying
> uses of the function:
>
> regression=# create function pg_temp.tfunc(int) returns int as
> regression-# $$ select $1 + 1 $$ language sql;
>
Excellent. I've submitted this as a comment to the docs for the next
time someone googles "CREATE TEMPORARY FUNCTION".
Cheers,
Steve
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Allison | 2008-04-23 21:35:14 | Re: Need to update all my 60 million rows at once without transactional integrity |
Previous Message | John Gardner | 2008-04-23 21:04:09 | Re: Vacuuming Questions |