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 1kPZRf-00073c-K7 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Oct 2020 22:59:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPZRc-0008Sb-JW for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Oct 2020 22:59:00 +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 1kPZRb-0008SU-EY for pgsql-hackers@lists.postgresql.org; Mon, 05 Oct 2020 22:59:00 +0000 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPZRU-0000pU-9s for pgsql-hackers@lists.postgresql.org; Mon, 05 Oct 2020 22:58:59 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id 331D4484; Mon, 5 Oct 2020 18:58:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 05 Oct 2020 18:58:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=CdlbcqD2gnN1+CtxD SvgsfFWXnYKASyGyMMvS7IS2bY=; b=RIez3aDuiwdLAOaMizFvznLpG/Gix79z7 YPLQt59bfsgDuKu7WGX0kjXljdpA84rIVInYZLzjRVUwEXyp8n9IEZOuEYC5DPvo VOaidNsmQQqQYk1/bqWWNONUUdnRiPGC56xRrMnVWKIycTIXxcYE/UVzse8txe3G 66ihCRRUU4N32RX4v8RTVxRqZBKmCPhtY5ksiU9mrYZFnKXc3NyKjwZIsaq3BhUB r8E/6nTJ902HHqCEZ64OAJF4K5RK1kE5AuYcs6pxQ54ZhEplfNqBwXsIA042gCFs EiB0ox8EAI8BcBrvKe7Uzy7BX5B9XqaszYZeYo1q3/0DUb/e8FQWQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeefgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteetiedu ieeihffggfehffetnecukfhppeduledtrdelhedrudelrddugeeknecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 63C16328005D; Mon, 5 Oct 2020 18:58:45 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 89EFA2A0C97; Mon, 5 Oct 2020 19:58:42 -0300 (-03) Date: Mon, 5 Oct 2020 19:58:42 -0300 From: Alvaro Herrera To: Tom Lane Cc: Bruce Momjian , Julien Rouhaud , torikoshia , Atsushi Torikoshi , Tatsuro Yamada , Robert Haas , Tomas Vondra , Michael Paquier , Evgeny Efimkin , PostgreSQL Hackers Subject: Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view? Message-ID: <20201005225842.GA8918@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1817289.1601934179@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Oct-05, Tom Lane wrote: > FWIW, I think this proposal is a mess. I was willing to hold my nose > and have a queryId field in the internal Query struct without any solid > consensus about what its semantics are and which extensions get to use it. > Exposing it to end users seems like a bridge too far, though. In > particular, I'm afraid that that will cause people to expect it to have > consistent values across PG versions, or even just across architectures > within one version. I wonder if it would help to purposefully change the computation so that it is not -- for instance, hash the system_identifier as initial value. Then users would be forced to accept that it'll change as soon as it migrates to another server or is upgraded to a new major version.