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 1obfDa-0004Gx-Qq for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2022 09:43:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obfDY-0007uM-Vz for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2022 09:43:32 +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 1obfDY-0007uC-GW for pgsql-hackers@lists.postgresql.org; Fri, 23 Sep 2022 09:43:32 +0000 Received: from forward500p.mail.yandex.net ([77.88.28.110]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obfDS-0006rW-OX for pgsql-hackers@lists.postgresql.org; Fri, 23 Sep 2022 09:43:30 +0000 Received: from iva1-adaa4d2a0364.qloud-c.yandex.net (iva1-adaa4d2a0364.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:a0e:0:640:adaa:4d2a]) by forward500p.mail.yandex.net (Yandex) with ESMTP id D9736F018D7; Fri, 23 Sep 2022 12:43:22 +0300 (MSK) Received: by iva1-adaa4d2a0364.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id SbZz9IptMN-hLiixXEF; Fri, 23 Sep 2022 12:43:22 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1663926202; bh=2uud+WgxJfoAeLUQaC4M5Ci8jtyJOtZ5qeGyAGklPZU=; h=In-Reply-To:Cc:From:Date:References:To:Subject:Message-ID; b=jUkBgt9Ba3HzTJ+Ud8Ovd5wF1cWSiNUOCSh3jvxrjGzrwc7UgFuHxZ4tbSEE14GqM nNfm1azs6UAYoDXsuwdUK/R60GWA5YBLeRxM2MiIqVYLE0KywE6lafdSl8rDjE4bNe 2kPeevvTU24DSzB8X+YWruKIBIIRlKaDn6wtLe28= Authentication-Results: iva1-adaa4d2a0364.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Fri, 23 Sep 2022 12:43:19 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: RFC: Logging plan of the running query Content-Language: en-US To: torikoshia References: <20220202.170421.204740592565249296.horikyota.ntt@gmail.com> <3bb7bacbc5ef9e58e2ece0557adac98b@oss.nttdata.com> <03c8dcbb-72d2-d3ad-3ad1-9efe69676529@oss.nttdata.com> <20220208.171852.1699766364147189900.horikyota.ntt@gmail.com> <3e94e9b3-83ef-c328-0c5c-f93aa3224790@oss.nttdata.com> <3d121ed5f81cef588bac836b43f5d1f9@oss.nttdata.com> <379d69c0b3d058997550f88e73ffddd6@oss.nttdata.com> <727712bcaa8d449615820c16d15e452e@oss.nttdata.com> <598171663576373@mail.yandex.ru> <38f4e19323b264e5975c60010b512b15@oss.nttdata.com> <0cc0608d89cc61a29e18c4ba8f8a03a6@oss.nttdata.com> From: Alena Rybakina Cc: pgsql-hackers@lists.postgresql.org In-Reply-To: <0cc0608d89cc61a29e18c4ba8f8a03a6@oss.nttdata.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sorry, I wrote confusingly at that time. No, I suggested adding comment about the explanation of HandleLogQueryPlanInterrupt() only in the explain.h and not removing from the explain.c. I seemed to be necessary separating declaration function for 'explaining feature' of executed query from our logging plan of the running query interrupts function. But now, I doubt it. > I'm not sure I understand your comment correctly, do you mean > HandleLogQueryPlanInterrupt() should not be placed in explain.c? Thank you for having reminded about this function and I looked at ProcessLogMemoryContextInterrupt() declaration. I'm noticed comments in the memutils.h are missed tooю Description of this function is written only in mcxt.c. > However, given that ProcesLogMemoryContextInterrupt(), which similarly > handles interrupts for pg_log_backend_memory_contexts(), is located in > mcxt.c, I also think current location might be acceptable. So I think you are right and the comment about the explanation of HandleLogQueryPlanInterrupt() written in explain.h is redundant. > I feel this comment is unnecessary since the explanation of > HandleLogQueryPlanInterrupt() is written in explain.c and no functions > in explain.h have comments in it. Regards, -- Alena Rybakina Postgres Professional