From: Tom Lane <tgl@sss.pgh.pa.us>
To: stimits@comcast.net
Cc: postgresql <pgsql-interfaces@postgresql.org>
Subject: Re: more on undefined reference to 'pg_detoast_datum' and libpq
Date: Sun, 12 Oct 2003 01:21:22 -0400
Message-ID: <558.1065936082@sss.pgh.pa.us> (raw)
In-Reply-To: <3F886324.8020707@comcast.net>
References: <3F886324.8020707@comcast.net>
"D. Stimits" <stimits@comcast.net> writes:
> Apparently in PosgreSQL 7.2.3 (the Redhat 7.3 version, which has some
> patching involved), pg_detoast_datum is defined in fmgr backend code,
> but this function is not defined anywhere in any library, especially not
> libpq.
Of course not; it's a backend function. Your problem is that you are
trying to build a server-side function as though it were a client
application. You're linking to an inappropriate set of libraries.
See the contrib modules for numerous examples of correct link setup
for server-side functions.
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, stimits@comcast.net
Subject: Re: more on undefined reference to 'pg_detoast_datum' and libpq
In-Reply-To: <558.1065936082@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