[lug] postgresql V1 C function extensions on RH 7.3/KRUD 7.3
D. Stimits
stimits at comcast.net
Thu Oct 9 17:33:50 MDT 2003
According to docs at:
http://www.postgresql.org/docs/7.2/interactive/xfunc-c.html
...I should have everything I need to build a V1 C interface to the
PostgreSQL server, rpm package postgresql-7.2.3-5.73. Unfortunately, I
can only get a V0 interface to compile (it works fine as V0). When
trying to link following the V1 information, it fails to find
pg_detoast_datum, which the docs say is not even used in V1...it is for
V0 variable data types. I get:
undefined reference to 'pg_detoast_datum'
...during link stage.
It also appears that if I use palloc() I end up with more missing link
functions: CurrentMemoryContext and MemoryContextAlloc. So I'm
definitely missing a link library somewhere.
So far I'm linking:
-lkrb5 -lk5crypto -lcom_err -lpq -ldl
...these are sufficient for V0 compiles and actual testing.
So far I have been unable to find a library that provides
pg_detoast_datum, and from docs, believe this should not even be
required for V1. Can anyone tell me on RH 7.3 (KRUD 7.3), PostgreSQL
7.2, if it is even possible to use V1 C extensions? It's looking like
the docs announced V1 too soon.
D. Stimits
More information about the LUG
mailing list