Dynamic Loading Library! Extension using C Function - Mailing list pgsql-novice

From Bilal Sadiq
Subject Dynamic Loading Library! Extension using C Function
Date
Msg-id SNT135-W6148E68C47F42B4A3C6CFF94E0@phx.gbl
Whole thread Raw
Responses Re: Dynamic Loading Library! Extension using C Function  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-novice
Dear PostgreSQL Community,

I just started learning PostgreSQL, and I am trying to develop a extension for postgre using SRF but I am stuck that how do I get the values by passing the constant integer value against a field/column without using the table name as argument. I already read the Xfunction document portion and successfully executed all most all the examples provided.

Suppose my query is

select get_all_greater_values(column_name, 2000) from table_name;

column_name
1000
2000
3000
4000

Result
3000
4000

Kindly help me for the above query and also suggest whether it is good to use the SRF or there is any other way to get results from this query. I want to implement extension code using C language as dynamic loading library. I really appreciate your concerns.


Regards
 
M. Bilal Sadiq

pgsql-novice by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: How to successfully create a new function?
Next
From: Jim Moon
Date:
Subject: How to successfully create a new function?