Re: Control your disk usage in PG: Introduction to Disk Quota Extension
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Hubert Zhang <hzhang@pivotal.io>
Cc: Michael Paquier <michael@paquier.xyz>, Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, Heikki Linnakangas <hlinnakangas@pivotal.io>
Date: 2019-02-16T04:53:51Z
Lists: pgsql-hackers
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 <https://github.com/greenplum-db/diskquota> > [ ...] > On Tue, Jan 22, 2019 at 12:08 PM Hubert Zhang <hzhang@pivotal.io> 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