Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6zug-0006ms-2g for pgsql-admin@arkaria.postgresql.org; Fri, 02 Jan 2015 10:57:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y6zuf-0003CT-Jb for pgsql-admin@arkaria.postgresql.org; Fri, 02 Jan 2015 10:57:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y6zue-0003CN-Ut for pgsql-admin@postgresql.org; Fri, 02 Jan 2015 10:57:01 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y6zub-0002vA-7v for pgsql-admin@postgresql.org; Fri, 02 Jan 2015 10:56:59 +0000 Received: from ayaki.localdomain ([106.68.178.83]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0Lzna3-1Xkk5O2nwp-01514X; Fri, 02 Jan 2015 11:56:54 +0100 Message-ID: <54A6796F.9070802@2ndquadrant.com> Date: Fri, 02 Jan 2015 18:56:47 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Tom Lane , girish R G peetle CC: pgsql-admin Subject: Re: PostgreSQL file system based restore from Linux to Windows References: <29289.1420007314@sss.pgh.pa.us> In-Reply-To: <29289.1420007314@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:qW38tJVJTzLFiqeYAxEutBBgTT/NiZugrXMDHxzbT05aVSrr+Dv 79SELAyBachEQYfB5dluVF7l/kM69PMUw0VCRyRZmLzMm6W7YMs0pkRueXyym+sS5rTCNwI W+VyTZTepvFHs6t6rdmQAXviB/CGgaSPfmjNzFGt+V4EDA0lrhJbJ8CYdOnDfC/6PMWGrKS Y9DGmAA15BmDM+v3uDmWw== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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