aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2020-07-14 17:29:52 +1200
committerDavid Rowley <drowley@postgresql.org>2020-07-14 17:29:52 +1200
commit101f903e51f52bf595cd8177d2e0bc6fe9000762 (patch)
treea08e900fbf5d0ae9f748c63edc277439f8322685 /src/backend
parentf1fcf2d3b2e00b3d7ad3e0d2b1d26b77f5a48413 (diff)
downloadpostgresql-101f903e51f52bf595cd8177d2e0bc6fe9000762.tar.gz
postgresql-101f903e51f52bf595cd8177d2e0bc6fe9000762.zip
Add comment to explain an unused function parameter
Removing the unused 'miinfo' parameter has been raised a couple of times now. It was decided in the 2nd discussion below that we're going to leave it alone. It seems like it might be useful to add a comment to mention this fact so that nobody wastes any time in the future proposing its removal again. Discussion: https://postgr.es/m/CAApHDvpCf-qR5HC1rXskUM4ToV+3YDb4-n1meY=vpAHsRS_1PA@mail.gmail.com Discussion: https://postgr.es/m/CAE9k0P%3DFvcDswnSVtRpSyZMpcAWC%3DGp%3DifZ0HdfPaRQ%3D__LBtw%40mail.gmail.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/commands/copy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c
index 99d14571801..44da71c4cb5 100644
--- a/src/backend/commands/copy.c
+++ b/src/backend/commands/copy.c
@@ -2604,6 +2604,9 @@ CopyMultiInsertInfoCleanup(CopyMultiInsertInfo *miinfo)
* Get the next TupleTableSlot that the next tuple should be stored in.
*
* Callers must ensure that the buffer is not full.
+ *
+ * Note: 'miinfo' is unused but has been included for consistency with the
+ * other functions in this area.
*/
static inline TupleTableSlot *
CopyMultiInsertInfoNextFreeSlot(CopyMultiInsertInfo *miinfo,