Skip site navigation (1) Skip section navigation (2)

Re: Stored procedures in C

From: "Martin Gainty" <mgainty(at)hotmail(dot)com>
To: "Emiliano Moscato" <moski666(at)gmail(dot)com>,<pgsql-general(at)postgresql(dot)org>
Subject: Re: Stored procedures in C
Date: 2008-04-23 22:38:06
Message-ID: BLU142-DAV73530EA88AF21C66B5421AEE30@phx.gbl (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Emiliano and Mike

The real challenge is trying to determine what a datatype is in cobol..for that matter what is stack variable or heap in Cobol?
In the end you're better off <re>writing this mess (preferably in Java)..
unless of course you need the billable hours for 
the first rewrite to C 
then later rewrite to Java

(That should get you at least 2 weeks worth of work..)

Buena Suerte/Good Luck
  ----- Original Message ----- 
  From: Emiliano Moscato 
  To: pgsql-general(at)postgresql(dot)org 
  Sent: Wednesday, April 23, 2008 3:32 PM
  Subject: [GENERAL] Stored procedures in C

  Hi all,

  I have to do some stuff writing stored procedures for Postgres in C. I saw the oficial documentation but it was hard for me to find out how to do a simple function, let's call it "query()" , that receives a string and uses this string to do a query and return the results. Has anyone some examples?
  I am looking at crosstab() example at contrib/tablefunc/tablefunc.c, but it is hard to follow, cause it does more complicated stuff.
  Thanks in advance...

  "No hay nada que uno haga mal , lo que hay es poco vino." Autor Anonimo 

In response to


pgsql-general by date

Next:From: Tim TassonisDate: 2008-04-23 22:59:57
Subject: Re: initdb in 8.3
Previous:From: Alban HertroysDate: 2008-04-23 22:36:49
Subject: Re: Need to update all my 60 million rows at once without transactional integrity

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group