Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtD2G-000107-AJ for pgsql-admin@arkaria.postgresql.org; Thu, 10 Jan 2013 07:58:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TtD2F-0002GQ-Dz for pgsql-admin@arkaria.postgresql.org; Thu, 10 Jan 2013 07:58:47 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtD2E-0002GG-Ap for pgsql-admin@postgresql.org; Thu, 10 Jan 2013 07:58:46 +0000 Received: from mail-bk0-f48.google.com ([209.85.214.48]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtD2C-0003UR-MF for pgsql-admin@postgresql.org; Thu, 10 Jan 2013 07:58:45 +0000 Received: by mail-bk0-f48.google.com with SMTP id jc3so100566bkc.7 for ; Wed, 09 Jan 2013 23:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=72pGqG58cVm7KtIcRbuT5m2TeOUNTJFM3Wg5AZoCVQc=; b=fwhGKWH4u9wLf4s5vl4k0F8Pn2hgk4bdtdpL9cJhC5Yv1E7ItmPM8A9VQhmypLnpEX KMHXPENBON93lvvyjCOAgtsR9FaaS11zOvBbbIkJFTcYb2FDOWceuU8i/LtXKY5p0kWW XmKtJxajLYTuXbp78wTHZiloC+Lgzc9RSj9EkmHtRHW+u4Nz/uib0+wpfv65A9w377D1 PEI6I/+QuHRnzZgj2wW6ZmICAEmsNhiWRze3z2RIKkLAyrbcPKpnDdTOYp6ZbP28gFad 60rmWFn826W6kyfk774Ld51dMnG7lzkYti/9pwSfK7nCOuW0n0wKpi9uOA+c63ZR4qH6 1yMw== X-Received: by 10.204.130.87 with SMTP id r23mr34181657bks.90.1357804723101; Wed, 09 Jan 2013 23:58:43 -0800 (PST) Received: from [192.168.1.2] ([82.77.60.70]) by mx.google.com with ESMTPS id q22sm277738bkv.16.2013.01.09.23.58.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Jan 2013 23:58:42 -0800 (PST) Message-ID: <50EE74AF.1060109@gmail.com> Date: Thu, 10 Jan 2013 09:58:39 +0200 From: Birta Levente User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: pg_dump and restore References: <1357732123178-5739350.post@n5.nabble.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.5 (-) 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 10/01/2013 09:47, Arun Padule wrote: > Hi, > > Yes you a dump data from one version of postgres to the other version. > But later you will facing issue with casting of data type's. > As documentaion said, you need to make a dump with pg_dump from the "destination" version. But if you want to migrate to earlier version, the earlier pg_dump will not work with newer database. With pg_dump from 9.2 you can make dump from all versions and restore to 9.2. But you can't backup 9.0 database with pg_dump from 8.4. You can try to dump 9.0 with pg_dump 9.0 and restore to 8.4, but no guarantee to work. > e,g > > where '5' = 5; works in 8.0 version > > But same where clause through's a data type miss match on 9.1 version. > > These is just a one example, there might be many other functions that > might not be used or compatible with the higher version of postgres. > > In this case you need to explicit on the changes in the proc or > function. Like as below. > > where '5'::integer = 5; > > Thanks, > Arun > > On Wed, Jan 9, 2013 at 5:18 PM, suhas.basavaraj12 > wrote: > > Hi, > > Can we dump data from any postrgres version and restore it to any > version > of postgres ? > If not , can anyone tell which version of data is compatible to which > version ? > > Rgrds > Suhas.B > > > > -- > View this message in context: > http://postgresql.1045698.n5.nabble.com/pg-dump-and-restore-tp5739350.html > Sent from the PostgreSQL - admin mailing list archive at Nabble.com. > > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org > ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > > -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin