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 1k1aoW-0003gr-DE for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jul 2020 19:35:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k1aoV-00088B-7P for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jul 2020 19:35:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1aoV-000884-0Q for pgsql-hackers@lists.postgresql.org; Fri, 31 Jul 2020 19:35:31 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1aoO-0007Lc-Kf for pgsql-hackers@postgresql.org; Fri, 31 Jul 2020 19:35:29 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id E95EE222A53 for ; Fri, 31 Jul 2020 21:35:19 +0200 (CEST) Received: from s500.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id C84A2208812; Fri, 31 Jul 2020 21:35:19 +0200 (CEST) Received: from s474.loopia.se (unknown [172.22.191.6]) by s500.loopia.se (Postfix) with ESMTP id B02EF1E15688; Fri, 31 Jul 2020 21:35:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s499.loopia.se ([172.22.191.5]) by s474.loopia.se (s474.loopia.se [172.22.190.14]) (amavisd-new, port 10024) with LMTP id e_RHtO5cSVQc; Fri, 31 Jul 2020 21:35:19 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 81.224.181.40 Received: from daniels-mbp.lan (81-224-181-40-no272.tbcn.telia.com [81.224.181.40]) (Authenticated sender: daniel@yesql.se) by s499.loopia.se (Postfix) with ESMTPSA id C57881CDB0EB; Fri, 31 Jul 2020 21:35:18 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: Control your disk usage in PG: Introduction to Disk Quota Extension From: Daniel Gustafsson In-Reply-To: <7025C3BF-C91E-44EB-AE45-121EC79DC1E4@yesql.se> Date: Fri, 31 Jul 2020 21:35:18 +0200 Cc: David Steele , Michael Paquier , Alvaro Herrera , Hubert Zhang , Thomas Munro , Andres Freund , Robert Haas , "pgsql-hackers@postgresql.org" , Tomas Vondra , Heikki Linnakangas Content-Transfer-Encoding: quoted-printable Message-Id: <63F817B8-66F5-4327-AF9C-CEBECC36BF90@yesql.se> References: <20190925195435.GA21518@alvherre.pgsql> <20191201032011.GC2355@paquier.xyz> <7025C3BF-C91E-44EB-AE45-121EC79DC1E4@yesql.se> To: Haozhou Wang X-Mailer: Apple Mail (2.3445.104.14) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 1 Jul 2020, at 10:36, Daniel Gustafsson wrote: >=20 >> On 27 Mar 2020, at 11:22, Haozhou Wang wrote: >=20 >> We rebased this patch with the newest master. >=20 > This patch now fails to build according to Travis: >=20 > smgr.c: In function =E2=80=98smgrtruncate=E2=80=99: > smgr.c:578:47: error: passing argument 4 of =E2=80=98smgrtruncate_hook=E2= =80=99 makes integer from pointer without a cast = [-Werror=3Dint-conversion] > (*smgrtruncate_hook)(reln, forknum, nforks, nblocks); > ^ > smgr.c:578:47: note: expected =E2=80=98BlockNumber {aka unsigned = int}=E2=80=99 but argument is of type =E2=80=98BlockNumber * {aka = unsigned int *}=E2=80=99 >=20 >=20 > The warning is also present in the Windows build: >=20 > src/backend/storage/smgr/smgr.c(578): warning C4047: 'function' : = 'BlockNumber' differs in levels of indirection from 'BlockNumber *' = [C:\projects\postgresql\postgres.vcxproj] > src/backend/storage/smgr/smgr.c(578): warning C4024: = 'smgrtruncate_hook' : different types for formal and actual parameter 4 = [C:\projects\postgresql\postgres.vcxproj] > 2 Warning(s) >=20 > Marking the patch as Waiting for Author.=20 As the thread has stalled and the above compilation issue hasn't been addressed, I'm marking this entry Returned with Feedback. Feel free to = open a new entry when there is a fixed patch. cheers ./daniel=