Re: uuid type for postgres

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: uuid type for postgres
Дата
Msg-id 20050907190043.GG5953@surnet.cl
обсуждение исходный текст
Ответ на Re: uuid type for postgres  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Ответы Re: uuid type for postgres  (Andrew Dunstan <andrew@dunslane.net>)
Re: uuid type for postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Sep 07, 2005 at 06:48:41PM +0100, Patrick Welche wrote:
> On Wed, Sep 07, 2005 at 09:45:17AM -0700, Josh Berkus wrote:
> > > Nathan wrote:
> > 
> > > Quite a list.  I wonder what readline is doing there.
> > 
> > Readline is for PSQL command completion and history.  As for the rest, they 
> > are *optional* modules that apparently your RPM builder chose to include; I 
> > build from source and my only dependencies are bison, flex, gcc and perl.
> 
> Still seems odd to me: I would expect psql to have readline, not postgres.

It's an issue with the linker.  I seem to remember that 8.1 uses the
--as-needed flag to ld, which means it will only link the libraries that
each executable actually uses.

Hmm, poking my build, this doesn't seem to be the case:

$ ldd `which postgres`       linux-gate.so.1 =>  (0xffffe000)       libz.so.1 => /usr/lib/libz.so.1 (0x41c54000)
libreadline.so.5=> /lib/libreadline.so.5 (0xb7f51000)       libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7f23000)
libresolv.so.2=> /lib/tls/libresolv.so.2 (0x41c6a000)       libnsl.so.1 => /lib/tls/libnsl.so.1 (0x41c25000)
libdl.so.2=> /lib/tls/libdl.so.2 (0x4118f000)       libm.so.6 => /lib/tls/libm.so.6 (0x41153000)       libc.so.6 =>
/lib/tls/libc.so.6(0x41019000)       libncurses.so.5 => /lib/libncurses.so.5 (0xb7ee0000)       /lib/ld-linux.so.2
(0x41000000)

This is a fairly recent 8.1, maybe post-beta1.  Not sure what happened.
I certainly don't see the --as-needed in LDFLAGS:

$ pg_config  | grep LDFLA
LDFLAGS = -Wl,-rpath,/pg/install/00orig/lib
LDFLAGS_SL = 

-- 
Alvaro Herrera -- Valdivia, Chile         Architect, www.EnterpriseDB.com
"¿Que diferencia tiene para los muertos, los huérfanos, y aquellos que han
perdido su hogar, si la loca destrucción ha sido realizada bajo el nombre
del totalitarismo o del santo nombre de la libertad y la democracia?" (Gandhi)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: uuid type for postgres
Следующее
От: John DeSoi
Дата:
Сообщение: Re: PostgreSQL from source using MinGW