Re: Tsearch2 update for Win32.

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Tsearch2 update for Win32.
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE475C2D@algol.sollentuna.se
обсуждение исходный текст
Ответ на Tsearch2 update for Win32.  ("Dave Page" <dpage@vale-housing.co.uk>)
Ответы Re: Tsearch2 update for Win32.
Re: Tsearch2 update for Win32.
Список pgsql-patches
> >> While I have no particular objection to adjusting the
> >> tsearch2 script, why has the installer got a problem with it?
> >> Seems like this suggests a bug in win32 psql.
>
> > The installer runs contrib module scripts without using psql - it
> > executes them in a 'custom action' - code that is added to the
> > installation package in this case as a dll.
>
> Oh.  Hmm ... wouldn't it be easier and safer to launch "psql <script"
> as a subprocess?

I'd say no. Executing processes from the installer environment can be a
headache (we've had enough problems with initdb already..). And you have
to go through all the weirdness with the commandline quoting etc on
win32... It's a lot easier to execute a SQL script line-by-line. Which
also lets us trap the errors easier etc.

//Magnus


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tsearch2 update for Win32.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Tsearch2 update for Win32.