dbTalk Databases Forums  

Re: How the function written on pl/pgsql can be called

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Re: How the function written on pl/pgsql can be called in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Huxton
 
Posts: n/a

Default Re: How the function written on pl/pgsql can be called - 11-15-2004 , 03:28 AM






Anatoly Okishev wrote:
Quote:
How the function written on pl/pgsql can be called by the function
written on plperl.

Error is:

error from function: Undefined subroutine
&Safe::Root2::get_national_code called.....
You probably need to be calling "SELECT get_national_code(...)" to
access it via a standard query.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #2  
Old   
Anatoly Okishev
 
Posts: n/a

Default Re: How the function written on pl/pgsql can be called by the function written on plperl. - 11-15-2004 , 11:19 PM






Quote:
Anatoly Okishev wrote:
How the function written on pl/pgsql can be called by the function
written on plperl.

Error is:

error from function: Undefined subroutine
&Safe::Root2::get_national_code called.....

You probably need to be calling "SELECT get_national_code(...)" to access
it via a standard query.

--
Richard Huxton
Archonet Ltd

If i call this function from pl/pgsql it's worked, but i want to call this
function from plperl..

Anatoly Okishev



---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #3  
Old   
Mike Rylander
 
Posts: n/a

Default Re: How the function written on pl/pgsql can be called by the function written on plperl. - 11-16-2004 , 05:28 AM



In 8.0beta: http://candle.pha.pa.us/main/writing...-database.html

and in 7.4.x: http://www.postgresql.org/docs/7.4/i...-database.html

On Tue, 16 Nov 2004 10:19:01 +0500, Anatoly Okishev <rolly74 (AT) mail (DOT) ru> wrote:
Quote:
Anatoly Okishev wrote:


How the function written on pl/pgsql can be called by the function
written on plperl.

Error is:

error from function: Undefined subroutine
&Safe::Root2::get_national_code called.....

You probably need to be calling "SELECT get_national_code(...)" to access
it via a standard query.

--
Richard Huxton
Archonet Ltd

If i call this function from pl/pgsql it's worked, but i want to call this
function from plperl..

Anatoly Okishev

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


--
Mike Rylander
mrylander (AT) gmail (DOT) com
GPLS -- PINES Development
Database Developer

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



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.