X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 760E5D1B434 for ; Fri, 4 Jun 2004 13:14:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85700-09 for ; Fri, 4 Jun 2004 16:14:29 +0000 (GMT) Received: from dmfp02.dm.local (unknown [204.213.54.80]) by svr1.postgresql.org (Postfix) with ESMTP id AF6C9D1B16F for ; Fri, 4 Jun 2004 13:14:27 -0300 (ADT) Received: from cbamedia.com ([192.168.0.108]) by dmfp02.dm.local with Microsoft SMTPSVC(5.0.2195.5329); Fri, 4 Jun 2004 12:14:18 -0400 Message-ID: <40C09F5D.2070003@cbamedia.com> Date: Fri, 04 Jun 2004 09:12:13 -0700 From: Andrew Gold User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: C function linkage and testing Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Jun 2004 16:14:18.0606 (UTC) FILETIME=[FD04A0E0:01C44A4E] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/4 X-Sequence-Number: 4932 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