Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akCsM-0007Wc-JK for pgsql-committers@arkaria.postgresql.org; Sun, 27 Mar 2016 15:45:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1akCsL-0006a0-1R for pgsql-committers@arkaria.postgresql.org; Sun, 27 Mar 2016 15:45:13 +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 1akCs7-0006LL-9Y for pgsql-committers@postgresql.org; Sun, 27 Mar 2016 15:44:59 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1akCs3-0004yT-V6 for pgsql-committers@postgresql.org; Sun, 27 Mar 2016 15:44:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 96EA620BAF for ; Sun, 27 Mar 2016 11:44:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sun, 27 Mar 2016 11:44:54 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=7Mbx4dHhg1+NmOZBBG5xsouCpk8=; b=lDTbS 40+72FT5HVoPuWx5/KGUeZAZi2Qnj+hUH7YHOWATlxVWr43HiWAZ2A8UVGsizFit ZIat6Bfw+CZo7cLEpczLHqwE0GHQiMaJZlUW8sk8IPAaMn5s8jNopAGeZoz1PWfP LLQAwpKSiVghtGH+zue496SGCInBisHTDmmyEY= X-Sasl-enc: E3yUVgNyoPTol0EexQI/i0yciwJx206XDOFGLABZ3JFj 1459093494 Received: from intern.anarazel.de (ns1.anarazel.de [217.115.131.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 349246800F0; Sun, 27 Mar 2016 11:44:54 -0400 (EDT) Date: Sun, 27 Mar 2016 17:44:51 +0200 From: Andres Freund To: Bruce Momjian , Alvaro Herrera Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: pg_upgrade: preserve database and relation minmxid values Message-ID: <20160327154451.s35h3gggdnnadt2x@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Hi, On 2014-07-02 19:29:43 +0000, Bruce Momjian wrote: > pg_upgrade: preserve database and relation minmxid values > > Also set these values for pre-9.3 old clusters that don't have values to > preserve. > > Analysis by Alvaro > > Backpatch through 9.3 My compiler quite correctly complains about misleading indentation introduced by this commit: /home/andres/src/postgresql-9.3/src/bin/pg_dump/pg_dump.c:2475:4: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] lo_res = ExecuteSqlQueryForSingleRow(fout, loFrozenQry->data); ^~~~~~ /home/andres/src/postgresql-9.3/src/bin/pg_dump/pg_dump.c:2469:3: note: ...this 'else' clause, but it is not else ^~~~ The code in question is: /* * pg_largeobject_metadata */ if (fout->remoteVersion >= 90000) { resetPQExpBuffer(loFrozenQry); resetPQExpBuffer(loOutQry); if (fout->remoteVersion >= 90300) appendPQExpBuffer(loFrozenQry, "SELECT relfrozenxid, relminmxid\n" "FROM pg_catalog.pg_class\n" "WHERE oid = %u;\n", LargeObjectMetadataRelationId); else appendPQExpBuffer(loFrozenQry, "SELECT relfrozenxid, 0 AS relminmxid\n" "FROM pg_catalog.pg_class\n" "WHERE oid = %u;\n", LargeObjectMetadataRelationId); lo_res = ExecuteSqlQueryForSingleRow(fout, loFrozenQry->data); This appears to have been the result of a somewhat incorrectly resolved conflict in 9.3/9.4 (master/9.5 don't show the problem). Regards, Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers