pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gold <agold@cbamedia.com>
To: pgsql-interfaces@postgresql.org
Subject: C function linkage and testing
Date: Fri, 04 Jun 2004 09:12:13 -0700
Message-ID: <40C09F5D.2070003@cbamedia.com> (raw)

Hi All,

This is my first posting to the list, so please be gentle.

;-)

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?

For example, the VARSIZE and VARDATA macros are wrapped around internal 
functions; palloc and pfree also have dependencies.

If I want to use these calls within my extensions, and I want to run my 
extensions separately for debugging / validation purposes, what 
libraries should I link against?

Any help is welcome.

Andrew Gold



view thread (2+ messages)  latest in thread

Message-ID: <40C09F5D.2070003@cbamedia.com>
Permalink:  ../40C09F5D.2070003@cbamedia.com/
Also on:    postgresql.org/message-id/40C09F5D.2070003@cbamedia.com

 · 

reply

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: agold@cbamedia.com
  Subject: Re: C function linkage and testing
  In-Reply-To: <40C09F5D.2070003@cbamedia.com>

* 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