dbTalk Databases Forums  

Problem executing user function (on Solaris)

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Problem executing user function (on Solaris) in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rajan Bhide
 
Posts: n/a

Default Problem executing user function (on Solaris) - 09-08-2004 , 06:06 AM






Hi,

I am using plpgsql to write user function and type.
I am facing problem while executing the function.

psql=# select * from GSS_FUNC_REQ_CDR_COUNT();
ERROR: parser: parse error at or near "("

psql=# SELECT GSS_FUNC_REQ_CDR_COUNT();
NOTICE: plpgsql: ERROR during compile of gss_func_req_cdr_count near
line 0
ERROR: fmgr_info: function 0: cache lookup failed

psql=# \df GSS_FUNC_REQ_CDR_COUNT
List of functions
Result data type | Name | Argument data types
------------------+------------------------+---------------------
gss_counter_type | gss_func_req_cdr_count |

I am using PostgreSQL 7.4.3 on Solaris 5.8

BUT,If I try the same stuff on my Linux box(Debian 2.4.4-pre3+,i686),
things are working fine.
psql=# select * from GSS_FUNC_REQ_CDR_COUNT();
store_drt | acked_drt | store_cdr | acked_cdr
-----------+-----------+-----------+-----------
400 | 12 | 400 | 12

Can anybody suggest, How to solve this problem?

Thanks,
Rajan Bhide

---------------------------(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   
Tom Lane
 
Posts: n/a

Default Re: Problem executing user function (on Solaris) - 09-08-2004 , 09:08 AM






"Rajan Bhide" <rbhide (AT) starentnetworks (DOT) com> writes:
Quote:
psql=# select * from GSS_FUNC_REQ_CDR_COUNT();
ERROR: parser: parse error at or near "("

psql=# SELECT GSS_FUNC_REQ_CDR_COUNT();
NOTICE: plpgsql: ERROR during compile of gss_func_req_cdr_count near
line 0
ERROR: fmgr_info: function 0: cache lookup failed

I am using PostgreSQL 7.4.3 on Solaris 5.8
No, I don't think you are. Better check the version() again.

regards, tom lane

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

http://www.postgresql.org/docs/faqs/FAQ.html



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 - 2010, Jelsoft Enterprises Ltd.