Re: [PATCHES] libpq type system 0.9a

Поиск
Список
Период
Сортировка
От Andrew Chernow
Тема Re: [PATCHES] libpq type system 0.9a
Дата
Msg-id 47FBD6F0.8050607@esilo.com
обсуждение исходный текст
Ответ на Re: [PATCHES] libpq type system 0.9a  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: [PATCHES] libpq type system 0.9a  (Andrew Chernow <ac@esilo.com>)
Список pgsql-hackers
Martijn van Oosterhout wrote:
> How tight is the link to libpq? Could it exist as a seperate library:
> libpqbin or something? Still in core, just only used by the people who
> want it.
> 

I gave this a lot of thought and I do think we could abstract this.  The 
idea is to complie it in or out.

Add a --with-typesys to configure, which could enable "#ifdef 
LIBPQ_ENABLE_TYPESYS" everywhere.  If you don't specify --with-typesys, 
the API calls would still be there but would return ENOSYS, assign an 
error string or something.  This preserves link capatability.

This would trim out the 50k everyone is worried about :)  I'm sure there 
are other ways to acocmplish this, but this one seems easiest and keeps 
it all centralized.  Just like --with-openssl, except that loads 
libcrypto.so.

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] libpq type system 0.9a
Следующее
От: Andrew Chernow
Дата:
Сообщение: Re: [PATCHES] libpq type system 0.9a