Fix oversight in commit aa1f93a33.

Etsuro Fujita <efujita@postgresql.org>

Commit: 0131e8fc508ff8e10a6797bfe8043a0b9d34b30b
Author: Etsuro Fujita <efujita@postgresql.org>
Date: 2026-06-14T07:00:00Z
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

Files

PathChange+/−
contrib/postgres_fdw/postgres_fdw.c modified +1 −1

Discussion