Re: Control your disk usage in PG: Introduction to Disk Quota Extension

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Control your disk usage in PG: Introduction to Disk Quota Extension
Дата
Msg-id 7025C3BF-C91E-44EB-AE45-121EC79DC1E4@yesql.se
обсуждение исходный текст
Ответ на Re: Control your disk usage in PG: Introduction to Disk Quota Extension  (Haozhou Wang <hawang@pivotal.io>)
Ответы Re: Control your disk usage in PG: Introduction to Disk Quota Extension  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
> On 27 Mar 2020, at 11:22, Haozhou Wang <hawang@pivotal.io> wrote:

> We rebased this patch with the newest master.

This patch now fails to build according to Travis:

smgr.c: In function ‘smgrtruncate’:
smgr.c:578:47: error: passing argument 4 of ‘smgrtruncate_hook’ makes integer from pointer without a cast
[-Werror=int-conversion]
   (*smgrtruncate_hook)(reln, forknum, nforks, nblocks);
                                               ^
smgr.c:578:47: note: expected ‘BlockNumber {aka unsigned int}’ but argument is of type ‘BlockNumber * {aka unsigned int
*}’


The warning is also present in the Windows build:

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
parameter4 [C:\projects\postgresql\postgres.vcxproj] 
2 Warning(s)

Marking the patch as Waiting for Author.

cheers ./daniel


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: tar-related code in PostgreSQL
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: [Proposal] Add accumulated statistics for wait event