Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOpWI-0002H7-QV for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2020 21:24:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jOpWG-0003f5-Tv for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2020 21:24:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOpWG-0003eg-Gs for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2020 21:24:28 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jOpW7-00077W-8Z for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2020 21:24:24 +0000 Received: by mail-qt1-x843.google.com with SMTP id c16so8970516qtv.1 for ; Wed, 15 Apr 2020 14:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=MLFtiqRd7XH1BXxb2lCFyyvOWhIk09Kh3mUGsHT5Ru8=; b=uSJ2vujO+uAc5fQAwhHQDc1bHOJqNNCmim4901a2IWSWgyAx8JpqsV+4BrsGDlPmzz p+N5LIJvqKWxg+KldX1G9ahSVBVlu1Upl9ZGiDUyvfBzSW/ECcf5VNBBKLb5bIY43y1f 3cxDBfnP/dqocGz2EcFQTnzkFZjiXoxV506PY9fRF9rTVhIJFN57hhe8HB/4HdWrTtEb agbQIIxX2VkafiAZe6iJNV6dNSPbWTTLpKPF1Og5fIbpyltuPBYFAXQuEBB+qWtVtvwA ZKHXa83z9U/5xfDhOU9/h4QKgOuqbhSufccs1pd3fn8v/y8FVHbarNvkL5mjqz4IFQ68 IfGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MLFtiqRd7XH1BXxb2lCFyyvOWhIk09Kh3mUGsHT5Ru8=; b=YX1Qt26AWSiGrJ8Chs2y0Ohu/4w8nA4Y+7HCZHUiL1DbBZaNjQAsW9xsv1KN51CQOi 94tfc+nZfqlbqmkwNAzlw24BzWMnMP8trnLudmHxtzgrZZxMWJKmUbDdu7XyZloXF1L7 morHeRZKYLtWgWeV/cKC3WovZBMoSN9sHbXb5zqvp0Hv86TeqjvBhMZ2P/NmwD+B7B0o 90PvYjuamdRaGTslzzWAOeWChlZuQkBRondY0hlkvI/CKWfMecWGOe8yi+ft1Oje1qol t5L5HD7Rh71syvMJDkAK3nuCfKT7JKYUPzdKLvm4EptCU/UsUxnxURT5T01hA+CXL8LW VF6Q== X-Gm-Message-State: AGi0PuaZsIT+dJdZKOi/G329K1ksnEUQqQj6jMMNfTTA8/FHf0L7TCnM s20V2CfMRT+URfmntGVNi9dEgvR8sHzEEOHcxFUCPksNdgQkcKpY0i60KnCPY5aNwbjF3knko5p tvJrvVocKIR5jzQEqc0Fak/ySluKyJ6DFL2IYNGoUUIKFOWNRdQW1pXrpQSRco2D8hMlejlIiE4 lAkJhelFCuSi6MLN9B X-Google-Smtp-Source: APiQypLQWJYa97qjhm8Z5+S5Z999SdN+/ghaPte/C2leLEw99hsz0qXyp7RBtKnVVGZAhno8O3QWGw== X-Received: by 2002:ac8:3874:: with SMTP id r49mr23488492qtb.66.1586985857473; Wed, 15 Apr 2020 14:24:17 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id o13sm2319511qke.77.2020.04.15.14.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 14:24:16 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id CC535300A47; Wed, 15 Apr 2020 17:24:14 -0400 (-04) Date: Wed, 15 Apr 2020 17:24:14 -0400 From: Alvaro Herrera To: Thomas Munro Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Rationalize GetWalRcv{Write,Flush}RecPtr(). Message-ID: <20200415212414.GA23819@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200409214947.GA22655@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Apr-09, Alvaro Herrera wrote: > It seems worth pointing out that the new GetWalRcvWriteRecPtr function > has a different signature from the original one -- so any third-party > code using the original function will now get a compile failure that > should alert them that they need to change their code to call > GetWalRcvFlushRecPtr instead. Maybe we should add a line or two in the > comments GetWalRcvWriteRecPtr to make this explicit. After using codesearch.debian.net and finding no results, I decided that this is not worth the effort. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services