aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-11-04 09:55:02 -0500
committerRobert Haas <rhaas@postgresql.org>2024-11-04 09:55:02 -0500
commit6c24801b1717ff68695647068a5ad8ff88f7639d (patch)
treed39717d0ee12151f47d07327348d646294216c21 /src/backend/access/gist/gistbuildbuffers.c
parent7ac744e72c842f528bfbb303e615560f0689619b (diff)
downloadpostgresql-6c24801b1717ff68695647068a5ad8ff88f7639d.tar.gz
postgresql-6c24801b1717ff68695647068a5ad8ff88f7639d.zip
pg_combinebackup: When reconstructing, avoid double slash in filename.
This function is always called with a relative_path that ends in a slash, so there's no need to insert a second one. So, don't. Instead, add an assertion to verify that nothing gets broken in the future, and adjust the comments. While this is not a critical bug, the duplicate slash is visible in error messages, which could create confusion, so back-patch to v17. This is also better in that it keeps the code consistent across branches. Patch by me, reviewed by Bertrand Drouvot and Amul Sul. Discussion: http://postgr.es/m/CA+TgmoaD7dBYPqe7kMtO0dyto7rd0rUh7joh=JPUSaFszKY6Pg@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions