pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
C function from 7.3.2 to 7.4.3
4+ messages / 4 participants
[nested] [flat]

* C function from 7.3.2 to 7.4.3
@ 2004-07-01 20:25 Lee Wu <Lwu@mxlogic.com>
  2004-07-01 20:36 ` Re: C function from 7.3.2 to 7.4.3 Joe Conway <mail@joeconway.com>
  2004-07-01 21:19 ` Re: C function from 7.3.2 to 7.4.3 Peter Eisentraut <peter_e@gmx.net>
  2004-07-01 21:28 ` Re: C function from 7.3.2 to 7.4.3 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 3 replies; 4+ messages in thread

From: Lee Wu @ 2004-07-01 20:25 UTC (permalink / raw)
  To: pgsql-admin

Greetings,

 

I have some C functions (was compiled against 7.3.2, I think)

 

CREATE FUNCTION "mud" () RETURNS TRIGGER AS '/xxx/pgsql/lib/du.so',
'mud' LANGUAGE 'C';

 

It runs fine under 7.3.2, but I will get error when run the above CREATE
FUNCTION under 7.4.3. 

ERROR:  could not load library "/xxx/lib/du.so": /xxx/lib/du.so:
undefined symbol: elog

 

The 7.3.2 version is under /xxx/pgsql and 7.4.3 is under /tmp/pgsql

I have LD_LIBRARY_PATH and PGLIB to include /xxx/pgsql/lib

 

Do I need to re-compile C functions against 7.4.3 or something else I
missed?

 

I have tried to copy du.so from /xxx/pgsql/lib to /tmp/pgsql/lib and got
the same error.

 

Thanks,

 

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: C function from 7.3.2 to 7.4.3
  2004-07-01 20:25 C function from 7.3.2 to 7.4.3 Lee Wu <Lwu@mxlogic.com>
@ 2004-07-01 20:36 ` Joe Conway <mail@joeconway.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Joe Conway @ 2004-07-01 20:36 UTC (permalink / raw)
  To: Lee Wu <Lwu@mxlogic.com>; +Cc: pgsql-admin

Lee Wu wrote:
> I have some C functions (was compiled against 7.3.2, I think)

> Do I need to re-compile C functions against 7.4.3 or something else I
> missed?

Yes, you need to recompile against 7.4.3

HTH,

Joe



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: C function from 7.3.2 to 7.4.3
  2004-07-01 20:25 C function from 7.3.2 to 7.4.3 Lee Wu <Lwu@mxlogic.com>
@ 2004-07-01 21:19 ` Peter Eisentraut <peter_e@gmx.net>
  2 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2004-07-01 21:19 UTC (permalink / raw)
  To: Lee Wu <Lwu@mxlogic.com>; pgsql-admin

Lee Wu wrote:
> I have some C functions (was compiled against 7.3.2, I think)

Recompile against 7.4.*.




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: C function from 7.3.2 to 7.4.3
  2004-07-01 20:25 C function from 7.3.2 to 7.4.3 Lee Wu <Lwu@mxlogic.com>
@ 2004-07-01 21:28 ` Tom Lane <tgl@sss.pgh.pa.us>
  2 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2004-07-01 21:28 UTC (permalink / raw)
  To: Lee Wu <Lwu@mxlogic.com>; +Cc: pgsql-admin

"Lee Wu" <Lwu@mxlogic.com> writes:
> I have some C functions (was compiled against 7.3.2, I think)

> Do I need to re-compile C functions against 7.4.3

Yes.  You can hardly ever expect to move C functions across PG major
versions without at least recompiling them.  (We try not to break
the source code unnecessarily, but binary compatibility is never
promised.)

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2004-07-01 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 20:25 C function from 7.3.2 to 7.4.3 Lee Wu <Lwu@mxlogic.com>
2004-07-01 20:36 ` Joe Conway <mail@joeconway.com>
2004-07-01 21:19 ` Peter Eisentraut <peter_e@gmx.net>
2004-07-01 21:28 ` Tom Lane <tgl@sss.pgh.pa.us>

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