1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/src/common
David Steele c6aaf66e9d Add FUNCTION_LOG_RETURN_STRUCT() and update where appropriate.
The FUNCTION_LOG_RETURN() macro requires logging macros (e.g. FUNCTION_LOG_*_TYPE and FUNCTION_LOG_*_FORMAT) when returning a struct but these macros don't deliver much value since they only output the name of the struct rather than the contents. A copy of the struct is also made during this operation, which is wasteful.

FUNCTION_LOG_RETURN_STRUCT() does not make a copy of the struct and does not require any logging macros. Returned structures are logged as "struct" but this could be made more accurate using __typeof in the future.

Structures as parameters are not addressed here and work as before, i.e. they require logging macros.
2021-01-13 07:49:47 -05:00
..
compress Rename strPtr()/strPtrNull() to strZ()/strZNull(). 2020-07-30 07:49:06 -04:00
crypto Replace misuse of bufSize() with bufUsed(). 2020-10-24 13:18:02 -04:00
encode Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
io Add pack type. 2020-12-09 12:05:14 -05:00
type Always advance id when pack field is NULL. 2020-12-16 09:59:48 -05:00
assert.h Add ASSERT_INLINE() macro. 2020-07-08 17:31:48 -04:00
debug.c Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
debug.h Add FUNCTION_LOG_RETURN_STRUCT() and update where appropriate. 2021-01-13 07:49:47 -05:00
encode.c Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
encode.h Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
error.auto.c Use PostgreSQL instead of postmaster where appropriate. 2020-06-17 15:14:59 -04:00
error.auto.h Use PostgreSQL instead of postmaster where appropriate. 2020-06-17 15:14:59 -04:00
error.c Use __noreturn_ on error functions when coverage testing. 2020-04-14 11:43:50 -04:00
error.h Make sure functions/types needed for profiling are defined. 2020-06-16 15:40:32 -04:00
exec.c Move file descriptor read/write ready into IoRead/IoWrite. 2020-08-08 11:23:37 -04:00
exec.h Standardize some section names in headers. 2020-04-03 18:15:32 -04:00
exit.c Improve detailed error output. 2020-08-24 14:51:08 -04:00
exit.h Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
fork.c Rename handle to fd. 2020-08-05 18:25:07 -04:00
fork.h Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
ini.c Allow [, #, and space as the first character in database names. 2020-10-24 11:07:07 -04:00
ini.h Allow [, #, and space as the first character in database names. 2020-10-24 11:07:07 -04:00
lock.c Conform retry in lockAcquireFile() to the common retry pattern. 2020-11-24 09:40:44 -05:00
lock.h Allow multiple remote locks from the same main process. 2020-11-23 12:41:54 -05:00
log.c Rename handle to fd. 2020-08-05 18:25:07 -04:00
log.h Allow default process id to be specified in logInit(). 2020-04-07 14:23:31 -04:00
logLevel.h Split log levels into separate header file. 2018-05-23 09:45:08 -04:00
macro.h Update LICENSE.txt and PostgreSQL copyright for 2020. 2021-01-03 13:56:37 -05:00
memContext.c Add memContextFreeing(). 2020-08-05 14:07:04 -04:00
memContext.h Add memContextFreeing(). 2020-08-05 14:07:04 -04:00
regExp.c Rename strPtr()/strPtrNull() to strZ()/strZNull(). 2020-07-30 07:49:06 -04:00
regExp.h Standardize some section names in headers. 2020-04-03 18:15:32 -04:00
stackTrace.c Add missing semicolon in backtrace debug code. 2020-09-17 15:17:13 -04:00
stackTrace.h Make sure functions/types needed for profiling are defined. 2020-06-16 15:40:32 -04:00
stat.c Add general-purpose statistics collector. 2020-08-20 14:04:26 -04:00
stat.h Add general-purpose statistics collector. 2020-08-20 14:04:26 -04:00
time.c Move extern function comments to headers. 2020-04-03 18:01:28 -04:00
time.h Add time-based retention for full backups. 2020-05-08 15:25:03 -04:00
user.c Rename strPtr()/strPtrNull() to strZ()/strZNull(). 2020-07-30 07:49:06 -04:00
user.h Add missing header in common/user module. 2019-09-12 10:56:45 -04:00
wait.c Allow zero wait times in Wait object. 2020-04-09 18:13:35 -04:00
wait.h Add waitRemaining() to get remaining wait time. 2020-04-07 14:35:36 -04:00