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 1nNT8K-0001NY-Gk for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Feb 2022 05:27:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNT8I-0006Am-Gd for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Feb 2022 05:27:10 +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 1nNT8I-0006Ad-6D for pgsql-hackers@lists.postgresql.org; Fri, 25 Feb 2022 05:27:10 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nNT8G-0000W1-2x for pgsql-hackers@postgresql.org; Fri, 25 Feb 2022 05:27:09 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2d07ae0b1c4so21625987b3.11 for ; Thu, 24 Feb 2022 21:27:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q5Pv4g5QR3JSDIok/tObapRjUhrZsartfvjdjVmT8BQ=; b=HiIeB2I0pnL1cybtnuw3k++oesX/1aXTuzxB5n3j3suZVAeGxEifAAerOZP90BvMA1 8wIyjW4Z3ONJMzKLz9oUBqyUDU0eKbeUrn46xdZuaYJds0/5i5aM2Gi4a2Cy7CZbzDMV HkiCO/k7tpRcQEzi/yT+5x0z558C/ZHtK34jagBnQiKtMTsloaJCvNMlu7b6uMZUdr0p hvRHE743nBsRZ4DXl0zyrd8svfbKQhZfuP2fMnAfEKpQdAafneyEv5fWg5yGnDB6UiAM ocmdpXI5qPdBeaYK7RNjwp/wu8I6SFxOU4048PXA1O+U9J7derF7vvRvYG/LBaryOpmx kUIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q5Pv4g5QR3JSDIok/tObapRjUhrZsartfvjdjVmT8BQ=; b=yIun88U1PG1Qp24zrDxB9VAjAKqbrEX63pfGSkMSY1PQPcd8pBURUpNdXnBAMlMXNU FsWe59BhSSzs9O87+gr1HrXoqW4iIB9VimfqmAvochJ5hvh3GvUX3/GRx7amNBIeuVMk X9r0vjcWhB4JJ3Nj3lkfVJxIFhrT860Mkgg5ponQzvwP1gi3uSPQM97nJylngWCjLvXi 2Qztz09AxzX4YPQPrGlQtfkVjLoD4zrjfu+UkP/yFQMwtybMTlE8glJ8dclFNX4mfHxG 70pCZvXjt5WxN3U5Ijhf+FetcXuqmF2NYU3w07ud4HQv+NGo7iG5Chaxbx9it0768Kkq a6nA== X-Gm-Message-State: AOAM5331lp3E0mnr1+e3ht95yFHAw2+cikG+m1oli/FHsljGbIsR5Gzw Rogty+yu8ej42PUSNouSp0rqHAr9L218crAN2AE= X-Google-Smtp-Source: ABdhPJyb8tRXcrgoEYFiHaGI2f57MLD9mvke6r6s2utU6JMwPa5OJGuWUYUDH1koBBwkGBiOgDcW6xmygIxQe+IyrsQ= X-Received: by 2002:a0d:e005:0:b0:2d7:fb79:8f36 with SMTP id j5-20020a0de005000000b002d7fb798f36mr6435183ywe.404.1645766826223; Thu, 24 Feb 2022 21:27:06 -0800 (PST) MIME-Version: 1.0 References: <20220215182641.2cejma6tcgeoqyw2@alap3.anarazel.de> <20220218203255.d3evl6qi2n6gxy6b@alap3.anarazel.de> <20220219160203.y5w2ktc2utthn7pe@alap3.anarazel.de> <20220221053453.lo6fzmji23ennvgj@alap3.anarazel.de> <20220221074806.nyhdberpuwbcbudp@alap3.anarazel.de> In-Reply-To: From: Amit Kapila Date: Fri, 25 Feb 2022 10:56:47 +0530 Message-ID: Subject: Re: Design of pg_stat_subscription_workers vs pgstats To: Masahiko Sawada Cc: Peter Smith , "tanghy.fnst@fujitsu.com" , Andres Freund , "David G. Johnston" , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 24, 2022 at 9:20 PM Masahiko Sawada wrote: > > > > > 6. src/backend/postmaster/pgstat.c - function name > > > > +/* ---------- > > + * pgstat_reset_subscription_counter() - > > + * > > + * Tell the statistics collector to reset a single subscription > > + * counter, or all subscription counters (when subid is InvalidOid). > > + * > > + * Permission checking for this function is managed through the normal > > + * GRANT system. > > + * ---------- > > + */ > > +void > > +pgstat_reset_subscription_counter(Oid subid) > > > > SUGGESTION (function name) > > "pgstat_reset_subscription_counter" --> > > "pgstat_reset_subscription_counters" (plural) > > Fixed. > We don't use the plural form in other similar cases like pgstat_reset_replslot_counter, pgstat_reset_slru_counter, so why do it differently here? -- With Regards, Amit Kapila.