Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA22769; Thu, 1 Jul 93 07:13:44 -0700
Message-Id: <9307011413.AA22769@postgres.Berkeley.EDU>
From: Wolf Guddat <guddat@faps.uni-erlangen.de>
Subject: libq via adt-function
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
To: postgres-questions@postgres.berkeley.edu
Date: Thu, 1 Jul 93 16:15:24 MESZ
Cc: postgres@postgres.berkeley.edu
Mailer: Elm [revision: 70.30]

Hi everybody,

is there anyone who has attempted to use libpq inside of
his dynamically loaded functions.
I can't find a hint on that in the manuals, all examples
access it from outside of postgres.

Resources: Ultrix4.3, DECstation, PG 4.1

I'm able to compile and link without errors.
Loading via monitor is OK.
But then, calling my function, the monitor stops with:
"unexpected identifier in process portal" (seems to occur
before my first line of code is reached = means at point
of invocation)
Am i doing some mistakes in my cc/ld-commands listed below
I think they are OK.

cc -G 0 $INC1 -c connect.c 
ld -L/usr/kits/postgres/lib -lpq -r -A connect.o -o connect


Even for small hints i would be very happy.

Bye Wolf


*****************************************************
**                                                 **
*  Wolf Guddat, guddat@faber.faps.uni-erlangen.de  **
**                                                 **
*****************************************************
