Re: installation problems - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: installation problems
Date
Msg-id 20030428163025.GE1864@tishler.net
Whole thread Raw
In response to Re: installation problems  (pgsql@mohawksoft.com)
List pgsql-cygwin
On Mon, Apr 28, 2003 at 10:39:43AM -0400, pgsql@mohawksoft.com wrote:
> > On Fri, Apr 25, 2003 at 03:32:56PM -0400, pgsql@mohawksoft.com wrote:
> >> Funny, but cygwin's "symlink" mechanism is pretty poor.
> >
> > Huh?  AFAICT, Cygwin's symlinks work as expected (i.e., identical to
> > symlinks on other Unixes).  Of course, Cygwin symlinks only work
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                ************************************

> > when interpreted by a Cygwin as opposed to Win32 process.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ********************************************************

> From the perspective of a Windows application trying to run a cygwin
> application which is a symlink to another cygwin application it does
> not look like UNIX symlinks.

See above...

> Cygwin symlinks are *not* symlinks, they are application level
> indirections.

We are beginning to argue semantics which are not benefiting the OP...

> NT does support symlinks at the driver level, but I don't know if it
> is practical or possible to use them for the file system.

The above has been discussed before on the various Cygwin mailing lists.
It is unlikely that the above will ever become part of Cygwin.

> >> Rather than using a symlink, copy postgres.exe to postmaster.exe
> >> and see if that works.
> >
> > The above is unlikely to help.
>
> Really?

Yes.

> It is one of the things I needed to do to get the "PostgreSQL for
> Windows" Install CD to work.

Note that the above is not needed with the standard Cygwin PostgreSQL
package.

Anyway, the OP indicated the following:

    On Mon, Apr 21, 2003 at 11:07:16AM -0300, Ed Redman wrote:
    > the following command will not run
    >
    > cygrunsrv --install postmaster --path /usr/bin/postmaster --args
    > "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT
    > --user postgres --shutdown

Since cygrunsrv is a Cygwin process, it will resolve the postmaster
symlink correctly.

> It depends on which API is being used to load the executable. If the
> Windows API is used to load the EXE, then you can not use a cygwin
> symlink.

See above...

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6


pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: Compiling cvs code with Cygwin problems
Next
From: Jason Tishler
Date:
Subject: Re: PostgreSQL installation problems