Re: Tsearch2 update for Win32.

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Tsearch2 update for Win32.
Date: 2004-09-08 14:50:31
Message-ID: Pine.LNX.4.61.0409081640020.14318@sablons.cri.ensmp.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Dear Magnus,

>> 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.

Maybe you're suggesting that psql and other commands functionnalities
should be made into some kind of a dynamic library to be loaded and called
from the installer, if using an external program is so difficult on win32?

I used to think that windows was posix somehow, so that it should provide
some 'exec*' functions which do not rely on shell scripting and should
not require much quoting.

Partially replicating functionnalities and adding bugs or limitations to
them does not seem so good a idea from a software engineering perspective.

Well, just my 0.02 EUR. I think it is a good thing that pg is available on
windows, so thanks for that anyway!

Have a nice day,

--
Fabien.

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Dave Page 2004-09-08 15:14:39 Re: Tsearch2 update for Win32.
Previous Message Tom Lane 2004-09-08 14:49:10 Re: Tsearch2 update for Win32.