Re: PostgreSQL windows native port available - Mailing list pgadmin-hackers

From Dave Page
Subject Re: PostgreSQL windows native port available
Date
Msg-id 214E9C0A75426D47A876A2FD8A07426E9750@salem.vale-housing.co.uk
Whole thread Raw
In response to PostgreSQL windows native port available  (Jean-Michel POURE <jm.poure@freesurf.fr>)
List pgadmin-hackers

> -----Original Message-----
> From: Jean-Michel POURE [mailto:jm.poure@freesurf.fr]
> Sent: 10 May 2002 11:29
> To: Dave Page; pgadmin-hackers@postgresql.org
> Cc: robert.collins@itdomain.com.au
> Subject: Re: [pgadmin-hackers] PostgreSQL windows native port
> available
>
>
> Le Vendredi 10 Mai 2002 11:21, Dave Page a écrit :
> > I think that a stripped down cygwin version is the (easy)
> way forward.
> > I think that's what MySQL do, certainly the cygwin dll is
> distributed
> > with it. All that is really required is the rewriting of probably
> > pg_dumpall, initdb & initlocation  - the rest of the scripts aren't
> > needed, and a binary-only version would then be easy bar licencing
> > issues.
> >
> > Writing an installer is easy enough as well...
>
> Dear Robert,
>
> Dave Page, pgAdmin2 author (http://pgadmin.postgresql.org),
> and I have been
> discussing for a long time to find a proper way to distribute
> PostgreSQL
> using a minimal Cygwin layer. Do not hesitate to correct me
> if I am wrong :
>
> Dear Dave,
>
> Robert Collins wrote me to explain quite a few tricks about
> Cygwin setup.exe
> installer:
>
> 1) Latest CVS Cygwin setup.exe supports scripting. I don't
> know in what extent
> installation features are mapped. At least, this means we
> should try the
> latest CVS version.
>
> 2) setup.exe is not needed if you know WHICH packages are
> required (with no
> relation to scripting). You simply need to provide path and
> everything in a
> proper setup.ini file. Et voilà.
>
> Setup.exe would be installed by our installer in the proper
> folder but not
> used. Users could possibly run setup.exe for upgrades.
>
> 3) setup.exe supports post-installation scripts. This may
> allow us to make a
> minimal PostgreSQL install of Template1, enable a TCP/IP
> socket, etc...
> inside a Cygwin package (example : run a bash script or
> connect locally using
> SSH to su under postgres user). Otherwize, we could do it
> manually using an
> installer script.
>
> Good news, no?

Hmmm. No offence to Robert, but I do not like the Cygwin installer (from a users pov, not a developers). I always seem
tobe getting hassled to upgrade it, then when I do, I find it does things like preselect the oldest versions of each
packagerather than the latest. I ran it the day before yesterday, and it didn't complain that it was out of date for
once,but did completely fail to parse the file containing the package info on each of about 5 different mirrors that I
tried:-( 

It is easily possible to create the required installer using Wise or Installshield (yes I know these aren't free), and
boththese products could make use of the psqlODBC merge module, and install services & ODBC datasources easily and
seamlesslywhich I suspect is more tricky (if not impossible) in the Cygwin installer (please correct me if I'm wrong). 

Installer technologies aside, one of the major reasons for this (and the other discussions on pgsql-hackers) is the
wishto 'hide' Cygwin from the PostgreSQL user. We need to make it live in C:\Program Files\PostgreSQL, not have a
completeunix style file layout, and generally look like a real Windows application. Cygwin is a great environment for
workingin and porting software, but now that work is done, PostgreSQL (as an application) should use, and expose the
absoluteminimum of Cygwin to the user. 

Regards, Dave.

pgadmin-hackers by date:

Previous
From: "Robert Collins"
Date:
Subject: Re: PostgreSQL windows native port available
Next
From: "Robert Collins"
Date:
Subject: Re: PostgreSQL windows native port available