From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gold <agold@cbamedia.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: C function linkage and testing
Date: Fri, 04 Jun 2004 12:57:37 -0400
Message-ID: <3901.1086368257@sss.pgh.pa.us> (raw)
In-Reply-To: <40C09F5D.2070003@cbamedia.com>
References: <40C09F5D.2070003@cbamedia.com>
Andrew Gold <agold@cbamedia.com> writes:
> I'm writing a number of C SQL-extension functions and it occurred to me
> that I might need to debug these things as some point. If I want to
> create my own main () function to exercise my extensions, what Postgres
> libraries do I need to link against?
There are no libraries for backend internal functions, and I doubt that
it would make any sense to provide such. (By the time you got done
duplicating the behavior of palloc and elog, you'd have a mini-backend
anyway --- you'd certainly not have a "library" that could be plugged
into any random main program.)
Usually people who want to debug such stuff just attach to a running
backend with a debugger, and debug the code in the live environment.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, agold@cbamedia.com
Subject: Re: C function linkage and testing
In-Reply-To: <3901.1086368257@sss.pgh.pa.us>
* 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