Unix Technical Forum

Stored Procedues in C

This is a discussion on Stored Procedues in C within the Pgsql General forums, part of the PostgreSQL category; --> Would anyone happen to have any examples or be able to point me to how to write a stored ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 08:55 AM
Bart McFarling
 
Posts: n/a
Default Stored Procedues in C

Would anyone happen to have any examples or be able to point me to how to
write a stored procedure in C? Ive looked at
http://www.postgresql.org/docs/8.1/i...interface.html

But am still having problems with getting a compile to work on a Linux
machine. (linker options etc..)

Thanks,
Bart


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

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 08:55 AM
Michael Fuhr
 
Posts: n/a
Default Re: Stored Procedues in C

On Wed, Jan 18, 2006 at 10:48:59AM -0600, Bart McFarling wrote:
> Would anyone happen to have any examples or be able to point me to how to
> write a stored procedure in C? Ive looked at
> http://www.postgresql.org/docs/8.1/i...interface.html


See also "C-Language Functions":

http://www.postgresql.org/docs/8.1/i...e/xfunc-c.html

There are examples under the contrib directory in the source code;
the smallest ones are probably the easiest to understand. You could
also grab some code from PgFoundry or GBorg.

http://pgfoundry.org/
http://gborg.postgresql.org/

> But am still having problems with getting a compile to work on a Linux
> machine. (linker options etc..)


See "Extension Building Infrastructure" in the "C-Language Functions"
link above; for examples see the contributed modules' Makefiles.
If you still have trouble then please post the details (what you're
trying to do, what your Makefile looks like, what error messages
you're getting, etc.).

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com