Re: plpgsql raise - parameters can be expressions - Mailing list pgsql-patches

From Christopher Kings-Lynne
Subject Re: plpgsql raise - parameters can be expressions
Date
Msg-id 42AD15F2.8060209@familyhealth.com.au
Whole thread Raw
In response to plpgsql raise - parameters can be expressions  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List pgsql-patches
> pokus=# create or replace function x() returns void as $$
> declare c integer[] = '{10,20,30}'; a integer = 3;b record;
> begin b := row(1,2);
>   raise notice 'sss % % % % % % % % %', interval '23 hour',
>     1, current_user, c,now(), c[1],
>     (select * from fx where 1 = 0 limit 1),
>     null,current_timestamp::timestamp(0);
> end; $$ language plpgsql;
> CREATE FUNCTION
> pokus=# select x();
> NOTICE:  sss 23:00:00 1 root {10,20,30} 2005-06-13 07:06:07.43569+02 10
> <NULL> <NULL> 2005-06-13 07:
> 06:07
>
> Regards
> Pavel Stehule

I like :)

+1


pgsql-patches by date:

Previous
From: Pavel Stehule
Date:
Subject: plpgsql raise - parameters can be expressions
Next
From: Michael Glaesemann
Date:
Subject: Re: plpgsql raise - parameters can be expressions