aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/tablesync.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-12-05 14:30:56 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-12-05 14:30:56 +0100
commitb608afe980a5dfe91d76148900179d52d4db5e64 (patch)
tree6f4c7387dab677ba06eb34440cb836a490c3991d /src/backend/replication/logical/tablesync.c
parentfcf46f8fb76ca8086119b3f1510533332aefd604 (diff)
downloadpostgresql-b608afe980a5dfe91d76148900179d52d4db5e64.tar.gz
postgresql-b608afe980a5dfe91d76148900179d52d4db5e64.zip
Fix incorrect error message for IDENTIFY_SYSTEM
Commit 5a991ef8692e accidentally reversed the order of the tuples and fields parameters, making the error message incorrectly refer to 3 tuples with 1 field when IDENTIFY_SYSTEM returns 1 tuple and 3 or 4 fields. Fix by changing the order of the parameters. This also adds a comment describing why we check for < 3 when postgres since 9.4 has been sending 4 fields. Backpatch all the way since the bug is almost a decade old. Author: Tomonari Katsumata <t.katsumata1122@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Bug: #18224 Backpatch-through: v12
Diffstat (limited to 'src/backend/replication/logical/tablesync.c')
0 files changed, 0 insertions, 0 deletions