GitHub user vsbace added a comment to the discussion: Add Support for the
diskquota extension in Apache Cloudberry
Well i have a one problem when i was trying to compile DISKQUOTA extension on
Cloudberry 1.6.0
and i need help in this situation if it possible:
`/opt/diskquota/src/diskquota.c: In function ‘disk_quota_worker_main’:
/opt/diskquota/src/diskquota.c:508:25: error: too many arguments to function
‘init_ps_display’
508 | init_ps_display("bgworker:", "[diskquota]",
dbname, _errmsg);
| ^~~~~~~~~~~~~~~
In file included from /opt/diskquota/src/diskquota.c:41:
/usr/local/cloudberry-db-1.6.0-ucb/include/postgresql/server/utils/ps_status.h:21:13:
note: declared here
21 | extern void init_ps_display(const char *fixed_part);
| ^~~~~~~~~~~~~~~
/opt/diskquota/src/diskquota.c:512:25: error: too many arguments to function
‘init_ps_display’
512 | init_ps_display("bgworker:", "[diskquota]",
dbname,
| ^~~~~~~~~~~~~~~
/usr/local/cloudberry-db-1.6.0-ucb/include/postgresql/server/utils/ps_status.h:21:13:
note: declared here
21 | extern void init_ps_display(const char *fixed_part);
| ^~~~~~~~~~~~~~~
/opt/diskquota/src/diskquota.c:541:9: error: too many arguments to function
‘init_ps_display’
541 | init_ps_display("bgworker:", "[diskquota]", dbname, "");
| ^~~~~~~~~~~~~~~
/usr/local/cloudberry-db-1.6.0-ucb/include/postgresql/server/utils/ps_status.h:21:13:
note: declared here
21 | extern void init_ps_display(const char *fixed_part);
| ^~~~~~~~~~~~~~~
/opt/diskquota/src/diskquota.c: In function ‘diskquota_status_schema_version’:
/opt/diskquota/src/diskquota.c:1625:9: warning: implicit declaration of
function ‘StrNCpy’; did you mean ‘strncpy’? [-Wimplicit-function-declaration]
1625 | StrNCpy(ret_version, version, sizeof(ret_version) - 1);
| ^~~~~~~
| strncpy
make[2]: *** [CMakeFiles/diskquota.dir/build.make:76:
CMakeFiles/diskquota.dir/src/diskquota.c.o] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:123: CMakeFiles/diskquota.dir/all] Ошибка 2
`
On Greenplum 7.2.0 we see another structure of parameters of function -
"init_ps_display":
`extern void init_ps_display(const char *username, const char *dbname,
const char *host_info,
const char *initial_str);`
GitHub link:
https://github.com/apache/cloudberry/discussions/1036#discussioncomment-13284593
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]