Re: Transfer db from one port to another

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: Killian Driscoll <killiandriscoll(at)gmail(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transfer db from one port to another
Date: 2015-12-23 14:28:43
Message-ID: BC835893-DFAD-4F17-B944-1CD9B102AE72@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> On 23 Dec 2015, at 12:43, Killian Driscoll <killiandriscoll(at)gmail(dot)com> wrote:
>
> OK - I did the dir and it shows that the dump and restore.exe are there, but running the above gives the below errors
>
> 09/06/2014 08:35 381,952 pg_dump.exe
>
> 09/06/2014 08:35 180,224 pg_restore.exe
>
> C:\Users\killian>path "C:\Program Files\PostgreSQL\9.3\bin";%path%
>
> C:\Users\killian>pg_dump -Fc -p 5432 -U postgres irll_project | pg_restore -U po
> stgres -p 5532
> ccoulould not findd a n "pg_restore" to executeot find a "pg_dump" to execute

Aren't you trying to move a database to PG 9.4? Then you need to use the pg_dump and pg_restore utilities of the 9.4 installation, not those of the 9.3 one. Those utilities are guaranteed to be backwards compatible, but they're not necessarily forwards compatible.

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Charles Clavadetscher 2015-12-23 14:29:31 Re: Transfer db from one port to another
Previous Message Killian Driscoll 2015-12-23 14:13:52 Re: Transfer db from one port to another