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 1lehx9-00052E-8d for pgsql-hackers@arkaria.postgresql.org; Thu, 06 May 2021 17:38:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lehx7-0000nj-07 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 May 2021 17:38:21 +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 1lehx6-0000nb-JT for pgsql-hackers@lists.postgresql.org; Thu, 06 May 2021 17:38:20 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lehx2-0005i8-Li for pgsql-hackers@postgresql.org; Thu, 06 May 2021 17:38:19 +0000 Received: by mail-oi1-x22c.google.com with SMTP id u16so6218185oiu.7 for ; Thu, 06 May 2021 10:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mbEoUiLvJbFgcx/9RVlUqX3+GB4SD1V1cYem9UE5hC8=; b=0g/XnMd7+jtNc/Xf0d9fu5eI881cJ6Tz62WTuR1eYOLET78LKb1xveUaNBEEcb560y pgBnYg1FV0H4yekQmlTJUvG+r4NY2hc2sfBR81RYobzUGtuUZ3eiBBFQJiviIz175iGs hJspkmAoTQNlCzGGUUKT+PWvREmhldhU74bNpDZR7EvEO62XlO7I8PcfC0QFmQXsPzYT nvCpXPrFsLqEZ/PE68Tlq3L5cldPHl+3SYIUwov/zFJXy4TIr6d8iugI0XzwRO9454gZ 2EY9M3oa6ctrOcjlemHzqIaHgmPYRdUHUj1u6JQLFPXqh4mVlHZbba7oFn5TNSwsXkIn d31w== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mbEoUiLvJbFgcx/9RVlUqX3+GB4SD1V1cYem9UE5hC8=; b=aooQDeBbBZBAiQ12zuvdu6S/hgUn6N0K8Iy4UzS1+cBziyM/WRqKr6Pq83XDYrsMrg NJfkuqRIh49HpXeDzGJLYmEo/v/zve0liTgNei9cMJBwIBoY0xIEBJfidpc1ZszETm/R IJ4ceSJof4U14kP5iI4AohBhMSxp+Rf355fJr/ii+yJHbhbAn3UnRrRqmYopLzf2RAE0 zDxstG2xEFQx68q5+tH33mFSnBKajeL5Zr5OWQBdMPfIAd4W4IgDduGeY3PdT6ZpqfBW BDX6DLJqjfE0VaLPpdN5qUsG5nQA2kF6n6YknPUmToqz3Rvy5s/oFkk+q+aHnpR//yIw 1ZvQ== X-Gm-Message-State: AOAM531HCX0GXcgst7LQjku788AptqhGDk90CyMslCGNZejlyDyKE6Mp FaQE5hccqOhBt5AuiEszehPN2Q== X-Google-Smtp-Source: ABdhPJyAPm/MAfeR2WsMG89wETSqgUuhzxpCX6tjI59RIXbFK+M5ZiIgz6LGBhd2ivtRZT13WKsRxg== X-Received: by 2002:a05:6808:10d0:: with SMTP id s16mr4037262ois.10.1620322695194; Thu, 06 May 2021 10:38:15 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d19sm257615oti.57.2021.05.06.10.38.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 May 2021 10:38:14 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 87C15800897; Thu, 6 May 2021 12:38:13 -0500 (CDT) Date: Thu, 6 May 2021 12:38:13 -0500 From: Justin Pryzby To: Tom Lane Cc: Hubert Zhang , tsunakawa.takay@fujitsu.com, pgsql-hackers@postgresql.org, Andreas Seltenreich , Bruce Momjian Subject: Re: Multiple hosts in connection string failed to failover in non-hot standby mode Message-ID: <20210506173813.GN27406@telsasoft.com> References: <229507.1610056206@sss.pgh.pa.us> <770711.1610318330@sss.pgh.pa.us> <20210506162651.GJ27406@telsasoft.com> <4170264.1620321747@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4170264.1620321747@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 06, 2021 at 01:22:27PM -0400, Tom Lane wrote: > I'm curious though why it took this long for anyone to complain. > I'd supposed that people were running sqlsmith against HEAD on > a pretty regular basis. I think it's also becase sqlsmith would need to run against the v14 *client* library. I don't know about anyone else's workflow, but I tend not to "make install", but work with binaries out of ./tmp_install. There's a few changes needed on sqlsmith HEAD, but I guess nobody would have gotten that far if the connection was failing (or rather, detected as such). diff --git a/grammar.cc b/grammar.cc index 62aa8e9..76491ff 100644 --- a/grammar.cc +++ b/grammar.cc @@ -327,7 +327,11 @@ query_spec::query_spec(prod *p, struct scope *s, bool lateral) : search = bool_expr::factory(this); - if (d6() > 2) { + if (d6() > 4) { + ostringstream cons; + cons << "order by 1 fetch first " << d100() + d100() << " rows with ties"; + limit_clause = cons.str(); + } else if (d6() > 2) { ostringstream cons; cons << "limit " << d100() + d100(); limit_clause = cons.str(); diff --git a/postgres.cc b/postgres.cc index f2a3627..1c0c55f 100644 --- a/postgres.cc +++ b/postgres.cc @@ -30,6 +30,7 @@ bool pg_type::consistent(sqltype *rvalue) case 'c': /* composite type */ case 'd': /* domain */ case 'r': /* range */ + case 'm': /* multirange */ case 'e': /* enum */ return this == t;