Unix Technical Forum

Re: Calling void functions

This is a discussion on Re: Calling void functions within the pgsql Hackers forums, part of the PostgreSQL category; --> >I'm informed that the last statement of a function that returns void cannot >be a SELECT. How else is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 08:06 AM
Pavel Stehule
 
Posts: n/a
Default Re: Calling void functions

>I'm informed that the last statement of a function that returns void cannot
>be a SELECT. How else is one supposed to call another function which also
>returns void?
>
>E.g.,
>
>CREATE FUNCTION foo (a int, b int) RETURNS void
> LANGUAGE plpgsql
> AS $$ do important things $$;
>
>CREATE FUNCTION foo (a int) RETURNS void
> LANGUAGE sql
> AS $$ SELECT foo($1, default-value); $$;


Hello Peter

it's problem. You cannot do it now. One year ago I sent patch

http://archives.postgresql.org/pgsql...3/msg00196.php

Regards
Pavel Stehule

__________________________________________________ _______________
Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 08:08 AM
Peter Eisentraut
 
Posts: n/a
Default Re: Calling void functions

Pavel Stehule wrote:
> it's problem. You cannot do it now. One year ago I sent patch
>
> http://archives.postgresql.org/pgsql...3/msg00196.php


The only comments to that were that no one knew what it was good for.
But now we know, so I think we should add your patch.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 08:08 AM
Pavel Stehule
 
Posts: n/a
Default Re: Calling void functions

>Pavel Stehule wrote:
> > it's problem. You cannot do it now. One year ago I sent patch
> >
> > http://archives.postgresql.org/pgsql...3/msg00196.php

>
>The only comments to that were that no one knew what it was good for.
>But now we know, so I think we should add your patch.
>


Tom Lane did it before you

nice a day
Pavel

__________________________________________________ _______________
Citite se osamele? Poznejte nekoho vyjmecneho diky Match.com.
http://www.msn.cz/


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:21 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com