Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4b3w-00025l-WD for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Apr 2018 23:46:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f4b3v-0003JZ-Qo for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Apr 2018 23:46:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4b3v-0003JP-54 for pgsql-hackers@lists.postgresql.org; Fri, 06 Apr 2018 23:46:31 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4b3s-0002gL-5v for pgsql-hackers@postgresql.org; Fri, 06 Apr 2018 23:46:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Type:MIME-Version:Date:Message-ID: Subject:From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=E31sdXyQzdc/VamNnuka+yOe8N0frrL+Nb9QGiCnfBI=; b=AiTadSADh5w5GH3MC1TgRFP9OQ iRvvKefekhFh6z5gBPNW/tgRFOzSEkGmQP0GyRUeJGY+YOa49w2fYnG/he+BLxs5P4/uGDyWL2eVC c/QpW1i4NQ2Oq7FeGiSEkjH762G3M/sTqS4gfQN/INUcVZOVhvGlsJ42dL+qQ8/PbGed6lZg7Yjbl NphP36/Pk1Nl0q7RUOXbDZTl1mQ/pW1sNOvpYjjL6AaKpZA/Lf8WRVHZV5aGCeoZZ3HjGLua+YzHx zIuJILXTvLLR+k7fNhM1OuIqpZ86og2Zttb0iGX8rPzUUBflJYYr7kmuJfi92Iepab1PLWCWaFGi4 o9oB9MJA==; Received: from [192.182.57.106] (port=43912) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f4b3q-0028lx-64 for pgsql-hackers@postgresql.org; Fri, 06 Apr 2018 19:46:26 -0400 To: PostgreSQL Hackers From: Chapman Flack Subject: [PATCH] Update README for Resource Owners Message-ID: <5AC806D1.1090608@anastigmatix.net> Date: Fri, 6 Apr 2018 19:46:25 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070106050007010508020407" X-OutGoing-Spam-Status: No, score=-96.8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------070106050007010508020407 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hasn't been updated as built-in support grew for temp files, DSM segments, and JIT contexts. With enough luck, a README update won't break anything. -Chap --------------070106050007010508020407 Content-Type: text/x-patch; name="0001-Update-README-for-Resource-Owners.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Update-README-for-Resource-Owners.patch" From fb06e17916ad6b445b1cf6361de6a7f2749ea225 Mon Sep 17 00:00:00 2001 From: Chapman Flack Date: Fri, 6 Apr 2018 19:41:57 -0400 Subject: [PATCH] Update README for Resource Owners. Built-in support for three more categories of owned object has accreted without mention in the README. --- src/backend/utils/resowner/README | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/backend/utils/resowner/README b/src/backend/utils/resowner/README index 2998f6b..b65fdb8 100644 --- a/src/backend/utils/resowner/README +++ b/src/backend/utils/resowner/README @@ -61,12 +61,13 @@ ResourceOwner transfers lock ownership to the parent instead of actually releasing the lock, if isCommit is true. Currently, ResourceOwners contain direct support for recording ownership of -buffer pins, lmgr locks, and catcache, relcache, plancache, tupdesc, and -snapshot references. Other objects can be associated with a ResourceOwner by -recording the address of the owning ResourceOwner in such an object. There is -an API for other modules to get control during ResourceOwner release, so that -they can scan their own data structures to find the objects that need to be -deleted. +buffer pins, lmgr locks, and catcache, relcache, plancache, tupdesc, snapshot, +open temporary file, dynamic shared memory segment, and JIT context references. + +Other objects can be associated with a ResourceOwner by recording the address +of the owning ResourceOwner in such an object. There is an API for other +modules to get control during ResourceOwner release, so that they can scan +their own data structures to find the objects that need to be deleted. Whenever we are inside a transaction, the global variable CurrentResourceOwner shows which resource owner should be assigned -- 2.7.3 --------------070106050007010508020407--