]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix oversight in commit aa1f93a33. master github/master
authorEtsuro Fujita <efujita@postgresql.org>
Sun, 14 Jun 2026 07:00:00 +0000 (16:00 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Sun, 14 Jun 2026 07:00:00 +0000 (16:00 +0900)
commit0131e8fc508ff8e10a6797bfe8043a0b9d34b30b
treefee387458caf050fd6c09f97d3079002ea7247aa
parentda1eff08a5bedc4bea9f75c8412d877c5619afc0
Fix oversight in commit aa1f93a33.

Since the remote column names of a foreign table could be longer than
NAMEDATALEN, remattrmap_cmp(), which compares such column names, should
have used strcmp(), not strncmp() with n=NAMEDATALEN.

Author: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Etsuro Fujita <etsuro.fujita@gmail.com>
Discussion: https://postgr.es/m/81D981EB-ECC1-495D-8EAC-5CFB67B2CF77%40gmail.com
contrib/postgres_fdw/postgres_fdw.c