Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rOPV4-003wJK-S4 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Jan 2024 21:55:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rOPV1-005nw7-3P for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Jan 2024 21:55:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rOPV0-005nvT-NT for pgsql-bugs@lists.postgresql.org; Fri, 12 Jan 2024 21:55:34 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rOPUw-001FDm-Gp for pgsql-bugs@postgresql.org; Fri, 12 Jan 2024 21:55:33 +0000 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3bd6581bca0so403266b6e.0 for ; Fri, 12 Jan 2024 13:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1705096530; x=1705701330; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=E2mY3WkBU36X20OXEr0nl/UN5eEFCk9cON+XuPPinT4=; b=I3PACUhRK2otZ+D4N0eBwZtwtQOiGFHv6lLlSSCR59mV4NnOn78GAC5wk5zbIZ3n2d KVfNagW+jEyHJ5QFgG7nKDMG832BRxyla0mAA7v7AtTOS47Sl0nMH2TBF3pd8CLXRUV4 kq2XWzjAWpimZdjqc3fNGapM9O5eCZgla/eIajI2v7X9pJbApyE+OUiry3FMUn4/ZfRP xtVzMV+joFd6s51l7QaHHL7eD1cVwqyOlTJTCMMNv/DNAcYIOcCcXLceUij8z2W/JXPj cxpbuF3NnXtBDSKXUuxJykQG12Cp9QRghDgroz53HwYl5GAVfO/A2MuJO1oSgTFjBj1N /3vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705096530; x=1705701330; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=E2mY3WkBU36X20OXEr0nl/UN5eEFCk9cON+XuPPinT4=; b=i0gothI5jiRAIfw+xakI/4KpQm8shvVJWcW2u4pj8957YcDKLBAb46Zwr9Zc6+Dyro MAa2h97zTQuiYsbnPvMETDgCe7lbzzj0EEvH+Vmjcu7wx2l5F2yBV4aZ8gEoAxNaXSdm TgpQV8ESJdJPr6gPZlmymqsQ2K+H7P64WJKTCSTTiMf/SB+2xdYZwhwi/qEHD3XeM/3R oWmAxMhpUs8b/4HfjtGnqkH4kftFyOOACaixsyXPz2MKpL39vYpdWUMQITU0LC9gyzXT Ejsh0jSATDFKp5XnJkOLLdexSyFwvqM1fz0O9LouPG5M5+sz8jt3ytHd+aSgsfqQeDxG IZXA== X-Gm-Message-State: AOJu0Yxili/S/T7e5Oo9gE+1aJNqAbs5WZfrYX2syUM+S4kMHp+GuC0f pIcYHozIkD3nTf7B0Si5tt/pyoCs07K0 X-Google-Smtp-Source: AGHT+IGRUDDQPXDolbPkTE4sTOaNURI4LSy9vDv/9YBOeG/ZtwFdwl97j20uao+Vz1gF/meXWhMF6g== X-Received: by 2002:a05:6808:399b:b0:3bd:4724:244d with SMTP id gq27-20020a056808399b00b003bd4724244dmr2017632oib.10.1705096529842; Fri, 12 Jan 2024 13:55:29 -0800 (PST) Received: from [172.18.10.36] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id u24-20020aa78498000000b006d97f80c4absm3603040pfn.41.2024.01.12.13.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 13:55:29 -0800 (PST) Message-ID: <5438ebe33bce797e5ffe24eaca81f1d130af9617.camel@j-davis.com> Subject: Re: [16+] subscription can end up in inconsistent state From: Jeff Davis To: vignesh C , Peter Smith Cc: Robert Haas , Amit Kapila , pgsql-bugs@postgresql.org Date: Fri, 12 Jan 2024 13:55:28 -0800 In-Reply-To: References: <5dff4caf26f45ce224a33a5e18e110b93a351b2f.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2023-11-27 at 10:26 +0530, vignesh C wrote: > The patch was not applying on HEAD because of recent commits, the > attached v6 version patch is rebased on top of HEAD. Thank you, committed with minor modifications. I decided to do: libpqrcv_check_conninfo(conninfo, must_use_password); rather than: if (must_use_password) =20 libpqrcv_check_conninfo(conninfo, true); because if there's some parsing error then we wouldn't like it to be conditional on must_use_password. Of course, there should not be any parsing error because it was already validated at DDL time, but in case there's another way to get into an inconsistent state, we might as well re-validate here. Regards, Jeff Davis