postgres.git / summary / log / commit / refs
commit 9ca52f1a76248116cfbc94bf965726b62df67cd9
Author: Amit Langote <amitlan@postgresql.org>
Date: Fri Sep 25 00:46:20 2026 +0000
First released in: 19.0
Fix missed pgindent in varlena.c
koel's pgindent check only covers master, so this went unnoticed in
REL_19_STABLE. Fixing it avoids an unnecessary diff between v19 and
v20.
Discussion: https://postgr.es/m/CA+HiwqEzbq+_tjDuOjAQ9bjmHL49LvHy+TT2a1XWTzxXZ-OOiA@mail.gmail.com
src/backend/utils/adt/varlena.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c
index 6fb31430a3a..e98bb1ae450 100644
--- a/src/backend/utils/adt/varlena.c
+++ b/src/backend/utils/adt/varlena.c
@@ -4716,9 +4716,10 @@ text_right(PG_FUNCTION_ARGS)
if (n < 0)
{
/*
- * Negating PG_INT32_MIN would overflow, so clamp instead. Any n whose
- * absolute value is at least the string's length skips the whole
- * string, and len can't exceed PG_INT32_MAX, so this is equivalent.
+ * Negating PG_INT32_MIN would overflow, so clamp instead. Any n
+ * whose absolute value is at least the string's length skips the
+ * whole string, and len can't exceed PG_INT32_MAX, so this is
+ * equivalent.
*/
if (unlikely(n == PG_INT32_MIN))
n = PG_INT32_MAX;
[parent: 2c5cd772b904]