Re: [CYGWIN] open item: tablespace handing in pg_dump/pg_restore - Mailing list pgsql-hackers

From Leeuw van der, Tim
Subject Re: [CYGWIN] open item: tablespace handing in pg_dump/pg_restore
Date
Msg-id BF88DF69D9E2884B9BE5160DB2B97A85010D6E5C@nlshl-exch1.eu.uis.unisys.com
Whole thread Raw
List pgsql-hackers
Hi,

There are certainly cygwin-users trying out PostgreSQL on cygwin on WinXX. If the newest cygwin-version will suddenly
stopworking under WinXX, they will not be happy. 

I've given consideration to the argument that you can no longer take data-directories from the cygwin-version to the
native-version...And I think that there's not a *huge* loss there. For me, as an observer and occiasional
user/developer,I think the loss of not running on cygwin+winXX is larger. 

After all, the data can still be dumped / reloaded. And what gives me the certainty that the two versions of
PostgreSQL,the cygwin and the native version, are not already compiled in such way that they're not binary compatible?
(remember,I'm an outsider on this, with no knowledge of the binary formats, and I'm trying to remain in that
perspectivefor this discussion) 

I don't know what the failure will be when you now try to move a data-directory from the cygwin version to the native
version,when cygwin uses a .lnk hack and native uses a junction. Did anyone try? What do the results look like? Is
therean acceptable way to stop ppl from trying / give sensible errors without introducing too much crap in the code and
withoutharming ppls data? 


regards,

--Tim


-----Original Message-----
From: pgsql-cygwin-owner@postgresql.org [mailto:pgsql-cygwin-owner@postgresql.org]On Behalf Of Tom Lane
Sent: Tuesday, October 12, 2004 1:02 AM
To: Bruce Momjian
Cc: Reini Urban; PostgreSQL Developers; pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] [HACKERS] open item: tablespace handing in pg_dump/pg_restore


Bruce Momjian <pgman@candle.pha.pa.us> writes:
> OK, I have applied the following patch that uses Cygwin native symlink()
> instead of the Win32 junctions.  The reason for this is that Cygwin
> symlinks work on Win95/98/ME where junction points do not and we have no
> way to know what system will be running the Cygwin binaries so the
> safest bet is to use the Cygwin versions.  On Win32 native we only run
> on systems that support junctions.

I think this is probably a net loss, because what it will mean is that
you cannot take a data directory built under a Cygwin postmaster and use
it under a native postmaster, nor vice versa.  Given the number of other
ways in which we do not support pre-NT4 Windows systems, what is the
benefit of allowing this one?

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

pgsql-hackers by date:

Previous
From: Marcos A Vaz Salles
Date:
Subject: Re: Hypothetical Indexes
Next
From: gevik@xs4all.nl
Date:
Subject: embedded postgresql