Unix Technical Forum

Function's final statement must not be a SELECT

This is a discussion on Function's final statement must not be a SELECT within the pgsql Hackers forums, part of the PostgreSQL category; --> Hello, I want do sql wrap for woid plpgsql function. But void SQL function must not finish SELECT cmd. ...


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, 01:33 AM
Pavel Stehule
 
Posts: n/a
Default Function's final statement must not be a SELECT

Hello,

I want do sql wrap for woid plpgsql function. But void SQL function must not
finish SELECT cmd. I don't know any others command which I can use.

Can You help me?
Thank You
Pavel Stehule

__________________________________________________ _______________
Najdete si svou lasku a nove pratele na Match.com. http://www.msn.cz/


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 01:34 AM
Jaime Casanova
 
Posts: n/a
Default Re: Function's final statement must not be a SELECT

On 3/10/06, Pavel Stehule <pavel.stehule@hotmail.com> wrote:
> Hello,
>
> I want do sql wrap for woid plpgsql function. But void SQL function must not
> finish SELECT cmd. I don't know any others command which I can use.
>
> Can You help me?
> Thank You
> Pavel Stehule
>


perform * from your_table;

--
Atentamente,
Jaime Casanova

"What they (MySQL) lose in usability, they gain back in benchmarks, and that's
all that matters: getting the wrong answer really fast."
Randal L. Schwartz

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 01:34 AM
Pavel Stehule
 
Posts: n/a
Default Re: Function's final statement must not be a SELECT




>From: "Jaime Casanova" <systemguards@gmail.com>
>To: "Pavel Stehule" <pavel.stehule@hotmail.com>
>CC: pgsql-hackers@postgresql.org
>Subject: Re: [HACKERS] Function's final statement must not be a SELECT
>Date: Sat, 11 Mar 2006 12:42:15 -0500
>
>On 3/10/06, Pavel Stehule <pavel.stehule@hotmail.com> wrote:
> > Hello,
> >
> > I want do sql wrap for woid plpgsql function. But void SQL function must

>not
> > finish SELECT cmd. I don't know any others command which I can use.
> >
> > Can You help me?
> > Thank You
> > Pavel Stehule
> >

>
>perform * from your_table;
>


Sorry, I need SQL construct. Please try:

create or replace function foo(bool) returns void as $$ ... $$ language
plpgsql volatile strict;

I can't to do:

create or replace function wrapper() returns void as $$ select foo(true); $$
language sql volatile strict;

Regards
Pavel

__________________________________________________ _______________
Najdete si svou lasku a nove pratele na Match.com. http://www.msn.cz/


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

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 06:04 AM.


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