Re: --enable-odbc issue for Darwin/Mac OS X

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: --enable-odbc issue for Darwin/Mac OS X
Дата
Msg-id Pine.LNX.4.30.0012191859220.1000-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: --enable-odbc issue for Darwin/Mac OS X  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane writes:

> I'd vote for ripping those includes out altogether.  No other part of
> our sources needs <malloc.h>, and I don't believe ODBC does or should
> either.

Gone.

> In a larger sense, the ODBC driver is probably not nearly as portable
> as the rest of Postgres, because it hasn't gotten wrung out on as many
> platforms.  Maybe we ought to start compiling it by default (not for
> 7.1 though ;-)).

The greatest problem is the unportable use of the _init and _fini symbols
to hook into startup and shutdown.  If you're using GCC then you will get
GCC's portable wrapper for that, but it looks gloomy on other compilers.

More generally, the usefulness of the present ODBC driver would seem to
depend somewhat on the driver manager used with it.  The current Unix
build is geared toward iODBC, and we already had to mess with rather low
level shared library linking options to get that to work correctly.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: "BigFace"
Дата:
Сообщение: sql -> xls or dbf
Следующее
От: andrea gelmini
Дата:
Сообщение: stupid patches to compile cvs docs with debian