Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br4PK-00068X-6d for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Oct 2016 14:39:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1br4PJ-0006Xv-Pc for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Oct 2016 14:39:53 +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 1br4PI-0006TH-K1 for pgsql-hackers@postgresql.org; Mon, 03 Oct 2016 14:39:52 +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 1br4PG-00078R-AC for pgsql-hackers@postgresql.org; Mon, 03 Oct 2016 14:39:51 +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 u93EdhmG028747; Mon, 3 Oct 2016 10:39:43 -0400 From: Tom Lane To: Robert Haas cc: Michael Paquier , Thomas Munro , Craig Ringer , Jim Nasby , PostgreSQL Hackers , Andres Freund , Peter Eisentraut Subject: Re: Renaming of pg_xlog and pg_clog In-reply-to: References: <0a089d6a-ff1d-88b0-5966-44bbbe5aa202@2ndquadrant.com> <20160826210830.m4id6ada72ojn7pj@alap3.anarazel.de> Comments: In-reply-to Robert Haas message dated "Mon, 03 Oct 2016 09:00:33 -0400" Date: Mon, 03 Oct 2016 10:39:43 -0400 Message-ID: <28746.1475505583@sss.pgh.pa.us> X-Pg-Spam-Score: -4.5 (----) 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 Robert Haas writes: > I think the tests for PQserverVersion(conn) / 100 >= 1000 are strange. > I submit that either PQserverVersion(conn) >= 100000 or > PQserverVersion(conn) / 10000 >= 10 is an easier-to-understand test. > I vote for the first style. +1, that's the way most existing tests of this sort are written. (Right at the moment, there's kind of a lot of zeroes there, but once we get to version 11 it'll be less bad.) 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