From: Vladimir V. Zolotych <gsmith@eurocom.od.ua>
To: pgsql-admin@postgreSQL.org
Subject: postgres functions(.so)
Date: Sat, 30 Sep 2000 11:27:48 +0300
Message-ID: <39D5A404.8865FC11@eurocom.od.ua> (raw)
Hello
Can anybody help me?
The question is: Is it possible to write
postgres function on C/C++ that selects
some tables of a database ?
More detailed description.
Suppose I have database with tables A, B.
I've written program on C++ with 'main' function
that reads tables A, B and returns some value, e.g. integer.
Now I'd like to implement the same actions as postgres
function (e.g. as .so module).
Is it possible ?
I know:
1) How compile C/C++ code to .so
2) How to CREATE FUNCTION .....
I don't know:
1) Is it possible to postges function
to read tables of the database
2) If possible, how it should be done?
3) Which restrictions applicable to .so
functions ?
If you know examples those do something similar,
please let me know.
Any help will be appreciated.
Thanks
--
Vladimir Zolotych gsmith@eurocom.od.ua
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: gsmith@eurocom.od.ua
Subject: Re: postgres functions(.so)
In-Reply-To: <39D5A404.8865FC11@eurocom.od.ua>
References: <39D5A404.8865FC11@eurocom.od.ua>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox