Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gurzJ-0001Hx-FQ for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Feb 2019 04:54:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gurzF-0004id-3G for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Feb 2019 04:54:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gurzC-0004iV-V2 for pgsql-hackers@lists.postgresql.org; Sat, 16 Feb 2019 04:54:00 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gurz9-0004IW-CV for pgsql-hackers@postgresql.org; Sat, 16 Feb 2019 04:53:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 36CB0C5AD; Fri, 15 Feb 2019 23:53:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 15 Feb 2019 23:53:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=udgB70XCFn36Vkt2oV7Ubjai12S LinIJ80+CW2iwd1s=; b=m6wA47vSZ4X2PXrI9rLmNHob+wY7C2VffzZ+WtKm3OR 8nnCLT/zBzLN+g/q6GsfayYI+5kK99iTN6zP7V6T0u9IcgEge7/iXHKVS6XkV73f MgRhou+g0ddRtqXS4hW6rdqW9tFOjG4O2LB4G4OYpq0DT/7nKLlMZb+Bd5s4aJjj umlIppRWlLIQVB4KmyscdNi6uiQCayNDcTp/6nxxdYTOPK5+Bekb99WndujX1YNe SPeuJpGX/xHem1iuQnyL7cs0LjYrIJHjV4mB+y1Q8GO8GXbl9+3PTX760T07Dy1f mu1ySlN7BWINd5kT+q0U/xPlUT5lAFGmfoMiImNAcZw== 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:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=udgB70 XCFn36Vkt2oV7Ubjai12SLinIJ80+CW2iwd1s=; b=ivvHMYAIBasG1KnLW4DDAf 7iwhzNvJQKcPfnN+js+Dm0g3Mp+8iS4LeHG1mr9jJhaaYSxdPFQhSP4je2fttheT EnPKdgUFGjr/Sf03fJURX2WoKrdljtzX6fFsuDzrVK5sRs5t/8Bs2vgOXafOEp5Z 6qUW4B6f2O+y8OyM4asXw1RDq+sfSMjOCMxUlpJFxB1cm0iLxH9Qrqj8Qp3FKLcF AdP/k940t+EZ8YbQGfLyhEF7DY480Fvs3Uxkpz3gHrgOsOQvVXH+shSs1JIG+9if QfaIAtJkWpXywtY+Mq67lwvev+2Jcn6DCM2aR9O/SHiYSAbf+0SDDcYWJsiCLu2g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddtkedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkfh ggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegr nhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuffhomhgrihhnpehgihhthhhusgdrtg homhenucfkphepleekrddvuddtrddugedtrddujedunecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpe dt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D441E409E; Fri, 15 Feb 2019 23:53:53 -0500 (EST) Date: Fri, 15 Feb 2019 20:53:51 -0800 From: Andres Freund To: Hubert Zhang Cc: Michael Paquier , Robert Haas , "pgsql-hackers@postgresql.org" , Tomas Vondra , Heikki Linnakangas Subject: Re: Control your disk usage in PG: Introduction to Disk Quota Extension Message-ID: <20190216045351.q344ex2utwk7ndtr@alap3.anarazel.de> References: <20181226055647.GK2234@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-01-30 10:26:52 +0800, Hubert Zhang wrote: > Hi Michael, Robert > For you question about the hook position, I want to explain more about the > background why we want to introduce these hooks. > We wrote a diskquota extension > [ ...] > On Tue, Jan 22, 2019 at 12:08 PM Hubert Zhang wrote: > > > > For this particular purpose, I don't immediately see why you need a > >> > hook in both places. If ReadBuffer is called with P_NEW, aren't we > >> > guaranteed to end up in smgrextend()? > >> Yes, that's a bit awkward. Please note that on PG lists the customary and desired style is to quote inline in messages rather than top-quote. Greetings, Andres Freund