User Profile

Collapse

Profile Sidebar

Collapse
diegoM
diegoM
Last Activity: Mar 20 '09, 11:30 PM
Joined: Mar 17 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SRF function : missing library on PostgreSQL 8.3.6 on Windows?

    Hello,

    I try to use the srf API and I have a link error. When I did :

    FuncCallContext *funcctx;
    ...
    if (SRF_IS_FIRSTCA LL()){
    funcctx = SRF_FIRSTCALL_I NIT(); // If I remove this line, no link error
    ...
    }


    I have this link error : "undefined reference to 'init_MultiFunc Call(FunctionCa llInfoData*)'". The init_MultiFuncC al function is in the funcapi.h file, but where...
    See more | Go to post

  • diegoM
    started a topic Function C and INOUT parameters

    Function C and INOUT parameters

    Hello,

    I have created a function in Postgres. His code is :

    Code:
    CREATE OR REPLACE FUNCTION add_one(INOUT arg1 integer, INOUT arg2 integer)
    [B]RETURNS record[/B]
    AS '$libdir/myDLL.dll', 'add_one'
    LANGUAGE 'c' VOLATILE STRICT ;
    In the DLL, I have a function C (it's just a test function) :

    Code:
    void add_one(int arg1, int arg2)
    {
    arg1 = arg1 + 1 ;
    arg2 = arg2 + 1 ;
    ...
    See more | Go to post
    Last edited by eWish; Mar 22 '09, 04:41 PM. Reason: Please use code tags
No activity results to display
Show More
Working...