Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFMt5-0002vx-Uw for pgsql-hackers@arkaria.postgresql.org; Mon, 29 May 2017 15:47:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFMt5-0007R7-Hc for pgsql-hackers@arkaria.postgresql.org; Mon, 29 May 2017 15:47:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFMrV-0000hZ-OV for pgsql-hackers@postgresql.org; Mon, 29 May 2017 15:45:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFMrT-0002Az-8U for pgsql-hackers@postgresql.org; Mon, 29 May 2017 15:45:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v4TFjbi3010764; Mon, 29 May 2017 11:45:37 -0400 From: Tom Lane To: tushar cc: PostgreSQL-development Subject: Re: pg_resetwal is broken if run from v10 against older version of PG data directory In-reply-to: References: Comments: In-reply-to tushar message dated "Mon, 29 May 2017 13:48:28 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10762.1496072737.1@sss.pgh.pa.us> Date: Mon, 29 May 2017 11:45:37 -0400 Message-ID: <10763.1496072737@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org tushar writes: > I have installed PG v9.6 / v9.5 , if we run pg_resetwal from v10 > binaries against data directory of v9.6/9.5 ,getting this error - > centos@centos-cpula bin]$ ./pg_resetwal -D /tmp/pg9.6/bin/data/ > pg_resetwal: pg_control exists but is broken or unknown version; ignoring it > pg_resetwal: could not open directory "pg_wal": No such file or directory This is pretty much exactly what I'd expect. Why would you think that pg_resetwal should work with other major versions? (Maybe we should have it look at PG_VERSION and refuse to do anything if that doesn't have the expected contents.) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers