agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@postgres.Berkeley.EDU>
To: David Brown - Computer Centre <dab@computer-science.paisley.ac.uk>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Help
Date: Thu, 28 Apr 94 12:11:31 -0700
Message-ID: <199404281911.MAA05485@heel.CS.Berkeley.EDU> (raw)
In-Reply-To: <3885.9404281247@chaos.cs.paisley.ac.uk>

David Brown - Computer Centre <dab@computer-science.paisley.ac.uk> writes:
> cc overpaid_2.c -I. -I/diana30g/postgres/include -I/diana30g/postgres/src/bac
kend -I/diana30g/postgres/include/port/sparc -L/diana30g/postgres/lib -lpq
> ld: Undefined symbol 
>    _GetAttributeByName 

you don't need GetAttributeByName for frontend functions -- the 
interface for that is part of libpq.  unfortunately there are no
examples in the user manual on how to use libpq, you just have to
slog through the rather non-tutorial discussion in the ref manual
and look at src/contrib and src/bin for examples.

GetAttributeByName is a hack to provide a tuple interface for 
functions that are loaded in the backend server and need to 
work on one tuple at a time.  if you are trying to load this into
the backend, you don't want -lpq and you do want -c in there 
somewhere.  you also need to create a shared object in accordance
with the user manual.
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki

===============================================================================
    To add/remove yourself from the POSTGRES mailing list: send mail with 
    the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

    If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
    a human will deal with it.  DO NOT post to the "postgres" mailing list.
===============================================================================




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: postgres@postgres.berkeley.edu
  Cc: aoki@postgres.Berkeley.EDU, dab@computer-science.paisley.ac.uk
  Subject: Re: Help
  In-Reply-To: <199404281911.MAA05485@heel.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox