Re: need help to write a function in postgresql - Mailing list pgsql-admin

From Laszlo Nagy
Subject Re: need help to write a function in postgresql
Date
Msg-id 501B8DB7.5050700@shopzeus.com
Whole thread Raw
In response to Re: need help to write a function in postgresql  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: need help to write a function in postgresql  (Craig Ringer <ringerc@ringerc.id.au>)
List pgsql-admin
> Then you can do:
>         select *
>     from retrieve_user('foo', 'bar');
>
> Personally I'd prefer to create view that wraps that select statement
> and then simply do a
>
>    select *
>    from user_view
>    where name = 'foo'
>    and password = 'bar'
It is also better because with a view, you can also do " name is null ".
But you cannot do that with a function (unless you write unnecessary
circumstancial code.)

pgsql-admin by date:

Previous
From: Laszlo Nagy
Date:
Subject: Messed up time zones
Next
From: Craig Ringer
Date:
Subject: Re: need help to write a function in postgresql