Re: Refactor backup related code (was: Is it correct to say, "invalid data in file \"%s\"", BACKUP_LABEL_FILE in do_pg_backup_stop?)
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: michael@paquier.xyz
Cc: bharath.rupireddyforpostgres@gmail.com, masao.fujii@oss.nttdata.com,
david@pgmasters.net, pgsql-hackers@lists.postgresql.org
Date: 2022-09-27T08:24:27Z
Lists: pgsql-hackers
Attachments
- rename_param_of_po_pg_backup_start.txt (text/plain)
This commit introduced BackupState struct. The comment of do_pg_backup_start says that: > * It fills in backup_state with the information required for the backup, And the parameters are: > do_pg_backup_start(const char *backupidstr, bool fast, List **tablespaces, > BackupState *state, StringInfo tblspcmapfile) So backup_state is different from both the type BackupState and the parameter state. I find it annoying. Don't we either rename the parameter or fix the comment? The parameter "state" sounds a bit too generic. So I prefer to rename the parameter to backup_state, as the attached. What do you think about this? regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Fix some comments of do_pg_backup_start() and do_pg_backup_stop()
- 2e560b974ec7 16.0 landed
-
Remove dependency to StringInfo in xlogbackup.{c.h}
- e1e6f8f3dfe1 16.0 landed
-
Refactor creation of backup_label and backup history files
- 7d708093b740 16.0 landed
-
Move basebackup code to new directory src/backend/backup
- a8c012869763 16.0 cited
-
Remove exclusive backup mode
- 39969e2a1e4d 15.0 cited