pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: girish R G peetle <giri.anamika0@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: PostgreSQL file system based restore from Linux to Windows
Date: Fri, 02 Jan 2015 18:56:47 +0800
Message-ID: <54A6796F.9070802@2ndquadrant.com> (raw)
In-Reply-To: <29289.1420007314@sss.pgh.pa.us>
References: <CAKKd067+NO8sGYqsMbgs_oDL+mP1wODTK5LP0mULGEX_h1FTzg@mail.gmail.com>
	<29289.1420007314@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On 12/31/2014 02:28 PM, Tom Lane wrote:
> It might happen to work, if you're talking the same Intel-ish CPU type
> on both ends ... but if it fails, don't call us.

It might for 32-bit, but I'm pretty sure it's not going to for 64-bit
because Windows is LLP64 and Linux is LP64, so sizeof(long) differs. See
http://en.wikipedia.org/wiki/64-bit_computing .

(Yet another area where Windows is annoyingly and pointlessly different,
like use of UTF16 instead of UTF-8, though at least there they have the
excuse of doing it first.)

Just use a Linux box or a virtual machine to start a copy of the
database, then pg_dump -Fc it and pg_restore to a new instance on the
Windows box.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (6+ messages)  latest in thread

Message-ID: <54A6796F.9070802@2ndquadrant.com>
Permalink:  ../54A6796F.9070802@2ndquadrant.com/
Also on:    postgresql.org/message-id/54A6796F.9070802@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: craig@2ndquadrant.com, tgl@sss.pgh.pa.us, giri.anamika0@gmail.com
  Subject: Re: PostgreSQL file system based restore from Linux to Windows
  In-Reply-To: <54A6796F.9070802@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox