Fix error message in check_partition_bounds_for_split_range()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 96c7381c4ceee2ef7c0a7327beb71dec47cf855e
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-04-30T09:00:39Z
Releases: 17.0
Fix error message in check_partition_bounds_for_split_range()

Currently, the error message is produced by a system of complex substitutions
making it quite untranslatable and hard to read.  This commit splits this into
4 plain error messages suitable for translation.

Reported-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/20240408.152402.1485994009160660141.horikyota.ntt%40gmail.com
Reviewed-by: Pavel Borisov

Files

PathChange+/−
src/backend/partitioning/partbounds.c modified +49 −21

Discussion

Cited messages not in the archive: 20240408.152402.1485994009160660141.horikyota.ntt@gmail.com