Re: [GENERAL] Accessing Database Data from C Function

2006-08-10 Thread Merlin Moncure
On 8/8/06, Jeffrey Bigham [EMAIL PROTECTED] wrote: Not really. Basically I know C decently enough and would have to learn PL/pgSQL (although it looks pretty easy). Perl sounds quite attractive for the added benefit of text-processing as you mention. I also have some vague understanding that C

Re: [GENERAL] Accessing Database Data from C Function

2006-08-09 Thread Jeffrey Bigham
On 8/8/06, Michael Fuhr [EMAIL PROTECTED] wrote: On Tue, Aug 08, 2006 at 12:16:18PM -0700, [EMAIL PROTECTED] wrote: I'd like to write a C Function for Postgresql that can access data in the database, use that to conduct additional queries to find more information in the database and

Re: [GENERAL] Accessing Database Data from C Function

2006-08-09 Thread Tom Lane
Jeffrey Bigham [EMAIL PROTECTED] writes: I also have some vague understanding that C might be faster. I hope I'm not opening a can-of-worms, but is C actually faster? C should theoretically be faster than any of the alternatives you mention, all else being equal (eg, you are implementing the

Re: [GENERAL] Accessing Database Data from C Function

2006-08-09 Thread Steve Atkins
On Aug 8, 2006, at 8:33 PM, Jeffrey Bigham wrote: Do you have a reason to use C instead of a higher-level language? Not really. Basically I know C decently enough and would have to learn PL/pgSQL (although it looks pretty easy). Perl sounds quite attractive for the added benefit of

[GENERAL] Accessing Database Data from C Function

2006-08-08 Thread jeffrey . bigham
Hello, I'd like to write a C Function for Postgresql that can access data in the database, use that to conduct additional queries to find more information in the database and eventually return a result. I currently have the functionality I want implemented as php/C programs that first connect to

Re: [GENERAL] Accessing Database Data from C Function

2006-08-08 Thread Michael Fuhr
On Tue, Aug 08, 2006 at 12:16:18PM -0700, [EMAIL PROTECTED] wrote: I'd like to write a C Function for Postgresql that can access data in the database, use that to conduct additional queries to find more information in the database and eventually return a result. I currently have the