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 1pki7S-0006w4-HQ for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Apr 2023 09:10:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pki7R-0003sr-CM for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Apr 2023 09:10:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pki7R-0003si-13 for pgsql-hackers@lists.postgresql.org; Fri, 07 Apr 2023 09:10:53 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pki7O-001Pp4-7Y for pgsql-hackers@lists.postgresql.org; Fri, 07 Apr 2023 09:10:52 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id w13-20020a4aca0d000000b0053b8aa32089so6527536ooq.5 for ; Fri, 07 Apr 2023 02:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680858648; x=1683450648; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A2AdWbBEh1LkHVqQCdKbt3mfi4UYdCc4wee5n1X4goI=; b=gFd3gS+KSt8rxNFJtnSrTQHZTcIJs4RQti6vXcUnj6x28UuufbKYE4cIb5ERCkbZAZ YPU8y4uSXG1johUDGpj58eUOW9VhTIZjoQ79n5o2A6MlVHoq+pzS6eAgjR+4pf5vPflm Cjez8rXthyEoLM0cbGlL/SvZagvsHiK6aWPaXR6w22pamoKaf7v3efwO/XOHm4ecdKRD uAQw0C8AF29LNeAqjzjKtK8mks/gYPadvO7pljfdf4Z7VID7hf94Skdkcz4Rz2sLq+As cgdoZV/NNVOifXld6cl0UekTeAS/Jv3Yepq6ihIRtjNpu1qvw8suy/qWzEDNrj2djhtw Otkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680858648; x=1683450648; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A2AdWbBEh1LkHVqQCdKbt3mfi4UYdCc4wee5n1X4goI=; b=qGglbUSpupVTJINf9pvzdW3aG41z61VYpCOEPMSoobb8i+7pIwRS1TsEZ4fvA2xj5/ QYoY99nZC6/v2aVw/M3JoDvfw9tgPX4MbTu9u5pplT+Cg5hv4QDA33DwGCOGQvuCbY4U glqKbvjHRHg0FTNHx9f1WddU3byJqBGzoaqXYitxQjp9pqNYOWvxC6ZWXBv70GoS4bBl THtrS4R2Ur3RiH7Q1g/f4/f4DagEjsBaFUSCNW/oSgcoBi1jfpzeA1TmhnXg/HCHeVLJ D2OmLTZPEFBwgIKGQZMsoB8J//+uX4IIvNtyl0KPLcMCXJbd8NmJmvkOXOixwiendPTn PWjw== X-Gm-Message-State: AAQBX9d3G0eCRyFvlfI+IBsCAqBTpQNaBaUP1xV/CDmNmko67Ji2/aWA qngyKSiRsd5JDmVyYfFRQrH8AsQIN+mtC2LQYnM= X-Google-Smtp-Source: AKy350bADpks8cio/3OQmUWnqGBvC/Qf/dLTvEAb1c4yy0G+OX5I9lEXdjSf/9Og0x/UTkbsgEsh0arzUkmcupzCaXc= X-Received: by 2002:a4a:e907:0:b0:53e:800e:d6c1 with SMTP id bx7-20020a4ae907000000b0053e800ed6c1mr847656oob.0.1680858648221; Fri, 07 Apr 2023 02:10:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 7 Apr 2023 14:40:36 +0530 Message-ID: Subject: Re: CREATE SUBSCRIPTION -- add missing tab-completes To: Masahiko Sawada Cc: Peter Smith , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Apr 7, 2023 at 1:12=E2=80=AFPM Masahiko Sawada wrote: > > On Fri, Apr 7, 2023 at 2:28=E2=80=AFPM Amit Kapila wrote: > > > > On Wed, Apr 5, 2023 at 5:58=E2=80=AFAM Peter Smith wrote: > > > > > > > LGTM, so pushed. BTW, while looking at this, I noticed that newly > > added options "password_required" and "run_as_owner" has incorrectly > > mentioned their datatype as a string in the docs. It should be > > boolean. > > +1 > > > I think "password_required" belongs to first section of docs > > which says: "The following parameters control what happens during > > subscription creation". > > But the documentation of ALTER SUBSCRIPTION says: > > The parameters that can be altered are slot_name, synchronous_commit, > binary, streaming, disable_on_error, password_required, run_as_owner, > and origin. Only a superuser can set password_required =3D false. > By the above, do you intend to say that all the parameters that can be altered are in the second list? If so, slot_name belongs to the first category. > ISTM that both password_required and run_as_owner are parameters to > control the subscription's behavior, like disable_on_error and > streaming. So it looks good to me that password_required belongs to > the second section. > Do you mean that because 'password_required' is used each time we make a connection to a publisher during replication, it should be in the second category? If so, slot_name is also used during the start replication each time. BTW, do we need to check one or both of these parameters in maybe_reread_subscription() where we "Exit if any parameter that affects the remote connection was changed." --=20 With Regards, Amit Kapila.