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 1qXukZ-000JhC-MW for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Aug 2023 02:34: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 1qXujY-001s5n-Tm for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Aug 2023 02:33:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qXujY-001s3Q-Hg for pgsql-hackers@lists.postgresql.org; Mon, 21 Aug 2023 02:33:36 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qXujV-0005cu-B5 for pgsql-hackers@lists.postgresql.org; Mon, 21 Aug 2023 02:33:35 +0000 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-564af0ac494so1604553a12.0 for ; Sun, 20 Aug 2023 19:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692585211; x=1693190011; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CyGWuZi/hshsWMmqXA8Vrt23Y+e7pOZXPPmeCchUeo8=; b=Iohxed20B+VDSPxnTy4GOljb318JmpTG/zncsEPa3/kSgbS3d0YQVjUSVi+dNCQBSl A681dCpjteHtJvdM9z4I9XKT5IMJtH+XqDa49CVjpNwRzEfABhqx9WdhRgv5ViepAoMI XP0UyB4mtGGR4kfD0fr/b3A8AhiD0S36CdPMIhUPFl696LsQZAPCd7kqrRKmlv8lNV1d q1O5/7bLSa9FiW/iyTZ+MGvPuJ4ApKMLHll6f41UgyeH0ih6mR3pVkWV7i5cuxcGUjJY 9o2a9LfgWY5ywna8i2/0jfxIACHHrcQBDmbxY6gsuNIR9JITg6agQy0CEKs7EbOZx7CZ feYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692585211; x=1693190011; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CyGWuZi/hshsWMmqXA8Vrt23Y+e7pOZXPPmeCchUeo8=; b=Kg+v6w95Rtt81m4cB/W8YGgafK2Ep7/Bb7yQ/qThGhhAKLLdMZXeb5KXVDuiYrhMX5 zem4vAOy1B2J6zlnEW1lWDv8UQR1gCP7UMgyYgkdYge8sHfIp/ZkvPCrANjmdd5mx/P/ M9b9luVAiXAloleww8zpIJcH3uagP6QiBOdCZ1LKakqTXXYzDxwaUWTPtX1hAyQjBdtK 23feg7RvtlGZkfVq2dzWLzx3yuoiGLvbIkYUhCGUXFEWcJPegkA1RsOK82o8ovQRy0/F L2W5A+9/6zWB1dMy6v2dQjoYVDZuqGYFS/K+ah11zBBOgXWLA4d8nxS0AQBvhhEbjkVk hwpA== X-Gm-Message-State: AOJu0YznlXKq46KU/LFV+TgYBipuLfDCkCV00v7O51om2ComgHmVfUzA 2BwKY5jxwHVO8y4gZUXezqk= X-Google-Smtp-Source: AGHT+IEqFZrifXTcXRoZkObRJEghw2h8aTEKDqcMrys/MdLGLD+G+b0IjpZuU4CQ3x3eYXAe897AiQ== X-Received: by 2002:a17:90b:46d0:b0:26d:14f2:b4da with SMTP id jx16-20020a17090b46d000b0026d14f2b4damr2640119pjb.36.1692585211296; Sun, 20 Aug 2023 19:33:31 -0700 (PDT) Received: from [192.168.86.37] (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id y13-20020a17090aca8d00b002693505391csm6634888pjt.37.2023.08.20.19.33.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Aug 2023 19:33:30 -0700 (PDT) Message-ID: <0c0dfe89-528c-c93f-bd00-e21781336ff0@gmail.com> Date: Mon, 21 Aug 2023 11:33:28 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: Fix pg_stat_reset_single_table_counters function Content-Language: en-US To: Masahiro Ikeda , Masahiko Sawada Cc: Andres Freund , pgsql-hackers@lists.postgresql.org, mitsuru.hinata.5432@gmail.com References: <7cc69f863d9b1bc677544e3accd0e4b4@oss.nttdata.com> <9a4a6718abb47647ae83f1f4b3f9bf68@oss.nttdata.com> <20230812191207.aerskqox7aoan3ud@awork3.anarazel.de> <97c9f7a46681f051b1356e2987c3fd6c@oss.nttdata.com> <93d14a670cf090c08994f1f4958efa25@oss.nttdata.com> From: Kyotaro Horiguchi In-Reply-To: <93d14a670cf090c08994f1f4958efa25@oss.nttdata.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Apologies. In the previous mail, I mistakenly addressed it to the wrong recipients. Reposted. On 2023/08/15 14:13, Masahiro Ikeda wrote: > On 2023-08-15 11:48, Masahiko Sawada wrote: >> +COMMENT ON DATABASE :current_database IS 'This is a test comment'; >> -- insert or update in 'pg_shdescription' >> >> I think the current_database should be quoted (see other examples >> where using current_database(), e.g. collate.linux.utf8.sql). Also it >> would be better to reset the comment after the test. > > Thanks! I fixed the issues in the v4 patch. I'm not sure about others, but I would avoid using the name "current_database" for the variable. I would just use "database" or "db" instead. -- Kyotaro Horiguchi NTT Open Source Software Center