Return-Path: owner-postman 
Delivery-Date: Thu, 28 Apr 94 15:55:59 -0700
Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id MAA16052 for postgres-redist; Thu, 28 Apr 1994 12:14:11 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199404281914.MAA16052@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from heel.CS.Berkeley.EDU (heel.CS.Berkeley.EDU [128.32.149.116]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id MAA16042 for <postgres@postgres.Berkeley.EDU>; Thu, 28 Apr 1994 12:14:10 -0700
Received: from localhost (localhost [127.0.0.1]) by heel.CS.Berkeley.EDU (8.6.4/8.1B) with SMTP id MAA05485; Thu, 28 Apr 1994 12:11:32 -0700
Message-Id: <199404281911.MAA05485@heel.CS.Berkeley.EDU>
X-Authentication-Warning: heel.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
From: aoki@postgres.Berkeley.EDU (Paul M. Aoki)
To: David Brown - Computer Centre <dab@computer-science.paisley.ac.uk>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Help 
Reply-To: aoki@postgres.Berkeley.EDU (Paul M. Aoki)
In-reply-to: Your message of Thu, 28 Apr 94 12:47:22 GMT 
	     <3885.9404281247@chaos.cs.paisley.ac.uk> 
Date: Thu, 28 Apr 94 12:11:31 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Thu, 28 Apr 94 12:14:11 -0700
Resent-XMts: smtp

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.
===============================================================================

