Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikZXX-00026h-7E for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Dec 2019 20:15:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikZXW-0005nT-0x for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Dec 2019 20:15:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikZXV-0005iS-Ki for pgsql-hackers@lists.postgresql.org; Thu, 26 Dec 2019 20:15:21 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ikZXS-0003BA-Iz for pgsql-hackers@postgresql.org; Thu, 26 Dec 2019 20:15:20 +0000 Received: by mail-pj1-x1043.google.com with SMTP id r67so3764194pjb.0 for ; Thu, 26 Dec 2019 12:15:18 -0800 (PST) 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=eGbo6PyRuzi+Ks254kJfhPyyCza54+huumOUU3vDh4U=; b=f4TOcG0yPkyYMYxcDmGxxLOGK0/+Sg4hJ0M/t12qWsS6xvSagPf5cEETThx6JMkEX0 vmj6m+TGnOKliKzCFZD+rdbEapNl5JzRgEkZ3UC43ntV0wNXQuu0Rt1KZmkW1osJLrFu ogG1s9rNBkkj89ufi4r/mQjKk72Jp+i8hGdwg0+/2JsoZC4ANlUnmo3lPQIX8e++JL2X 4efJiJPdXRpBL8h5YH3w90BTeD1/1sM4Ag4PKDNrmbc8BHV8ANB3cCDj9d4+cwoK7+ev RLM7J4VzmP84v4Tj8FFucz+T7G3q+CDsXSEMqSuQVCFGrZixu2qs21XgcbSHrDPEugKZ OBzQ== 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=eGbo6PyRuzi+Ks254kJfhPyyCza54+huumOUU3vDh4U=; b=rW4fYAOm97p2I0c+IAgpw9E2rt5of5H+2klgxIqOkTSw3OgA8WmNQOiPJcY3Dkf+vl Bc1MUzdKu2TBAtZBq5n/YEL6sIcnzuHNsOuyE4RPFDemkKBiE5UM+lZ8pvKKlZjGDfjs tXJ4tcVbYeLXhOwFbCFW8+s8RDSnyCW7wINCPmqGaGPMftI4bZbFugcwx92BqSafxJj1 BMBZ6M8kcOJKQ49HVlhve2LfsdoyE3qgfj/m2gMBmtzAFSbx16dSV6zXC2Othi1Fd8AF TkTMCEgRbPclgsWdm4OzbzkAdknA9id7HcYg24ZCqxXld3skqyLArmHDESL4YLmt/DG6 7lNA== X-Gm-Message-State: APjAAAW+cXAG0uvKOCFOHgVWULzeTejwz2yIu9DSVV5s1uTUnfAz5OjR Z5qviCYqCr1tYzLr80SsXtZz5w== X-Google-Smtp-Source: APXvYqwvRisQaz3nGii5KKDgljBLzKZX7Cz0Nnd3updWaXM2+/oswcWMO7TC2X4foCWNnH6NCPedig== X-Received: by 2002:a17:902:9b86:: with SMTP id y6mr45063327plp.253.1577391317055; Thu, 26 Dec 2019 12:15:17 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id k44sm11693530pjb.20.2019.12.26.12.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 12:15:16 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 37FEF30093A; Thu, 26 Dec 2019 17:15:13 -0300 (-03) Date: Thu, 26 Dec 2019 17:15:13 -0300 From: Alvaro Herrera To: Greg Nancarrow Cc: "Tsunakawa, Takayuki" , Haribabu Kommi , Robert Haas , Laurenz Albe , Tom Lane , Dave Cramer , Jing Wang , PostgreSQL-development , Elvis Pranskevichus Subject: Re: Libpq support to connect to standby server as priority Message-ID: <20191226201513.GA15320@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191226200723.GA11237@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 2019-Dec-26, Alvaro Herrera wrote: > The name of the label "consume_checked_write_connection" is not very > descriptive. I propose "conn_succeeded" instead. (I realized later that I should have removed this paragraph -- other goto labels are added in 0002 that would make such renaming more confusing than helpful. My later comment about the if/else/then maze is more general.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services