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 1m3Wdx-0004XO-0R for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jul 2021 04:37:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m3Wdv-0001lI-4E for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Jul 2021 04:37:07 +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 1m3Wdu-0001lA-EM for pgsql-hackers@lists.postgresql.org; Wed, 14 Jul 2021 04:37:06 +0000 Received: from forward3-smtp.messagingengine.com ([66.111.4.237]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3Wdl-0005pz-E1 for pgsql-hackers@lists.postgresql.org; Wed, 14 Jul 2021 04:37:05 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id F20C71940AF6; Wed, 14 Jul 2021 00:36:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 14 Jul 2021 00:36:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=5zrCAcoPUv4psMR+AFCGuh2kQCVYG6kSoiuMNVaCd Ag=; b=DFfq6y9Y3XRdw7yfRPHlhmlow/EfsGob2NT1vtllfdHgVfUF9uZvwp71K //dLJC9Ulc71nw6MBWp3boEQ8bLC2iVaYIO7b0mFhL4axa+i5cOH4Rr+R1tOyTng NZI4PV/ylMS4vKbOWHXGe2wAn17ga+W1BCKOzWnI+8MualueVCMqcbJ0JhZzgB78 JoNubwtspS+zsid9jVaLyhG4FrZddiXs8xqk0WT0F1tnmv/pxKAF69FD47+thKK2 RdN5LMW/0GcPgQDEHCREiuMAZHznaB84NoqCFSXrF+nVCaailXg1v+6YYl2aACW/ 50wQXiOzeUCMJJVRQ5Ekda8tLff4w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejgdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeelveehheeuieduieetiedt keeuteelfeetjeffieffudegvdffvdfftdeivdeukeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Jul 2021 00:36:50 -0400 (EDT) Subject: Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view? To: Magnus Hagander , Julien Rouhaud Cc: Fujii Masao , Bruce Momjian , Alvaro Herrera , Tom Lane , Nitin Jadhav , Hannu Krosing , Robert Haas , Pavel Stehule , Michael Paquier , torikoshia , Atsushi Torikoshi , Tatsuro Yamada , Tomas Vondra , Evgeny Efimkin , PostgreSQL Hackers References: <20210413021246.GD4231@momjian.us> <20210413173016.GA29955@alvherre.pgsql> <20210414183326.GA10946@momjian.us> <20210420162244.GD30205@momjian.us> <20210422092317.xnuvva2322dflxdm@nol> <8f5e63b8-e8ed-0f80-d8c4-68222624c200@enterprisedb.com> <20210713061023.edgei4ooxexxsi5r@nol> From: Peter Eisentraut Message-ID: Date: Wed, 14 Jul 2021 06:36:48 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.07.21 10:58, Magnus Hagander wrote: > Maybe "each distinct database id, each distinct user id, each distinct > query id, and whether it is a top level statement or not"? > > Or maybe "each distinct combination of database id, user id, query id > and whether it's a top level statement or not"? Okay, now I understand what is meant here. The second one sounds good to me.