Re: tablespace_map code cleanup
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-05-07T16:14:24Z
Lists: pgsql-hackers
Attachments
- v3-0001-Don-t-export-basebackup.c-s-sendTablespace.patch (application/octet-stream) patch v3-0001
- v3-0002-Minor-code-cleanup-for-perform_base_backup.patch (application/octet-stream) patch v3-0002
On Wed, May 6, 2020 at 11:15 AM Robert Haas <robertmhaas@gmail.com> wrote: > Oh, good point. v2 attached. Here's v3, with one more small cleanup. I noticed tblspc_map_file is initialized to NULL and then unconditionally reset to the return value of makeStringInfo(), and then later tested to see whether it is NULL. It can't be, because makeStringInfo() doesn't return NULL. So the attached version deletes the superfluous initialization and the superfluous test. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Minor code cleanup for perform_base_backup().
- 453e0e3f0ef3 14.0 landed
-
Don't export basebackup.c's sendTablespace().
- 1fa092913d26 14.0 landed
-
Map basebackup tablespaces using a tablespace_map file
- 72d422a5227e 9.5.0 cited