Fix out-of-date comment on makeRangeConstructors
authorPeter Eisentraut <[email protected]>
Sat, 13 Dec 2025 15:56:07 +0000 (16:56 +0100)
committerPeter Eisentraut <[email protected]>
Sat, 13 Dec 2025 15:56:07 +0000 (16:56 +0100)
We did define 4 functions in 4429f6a9e3, but in df73584431e7 we got
rid of the 0- and 1-arg versions.

Author: Paul A. Jungwirth <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Discussion: https://www.postgresql.org/message-id/CA%2BrenyVQti3iC7LE4UxtQb4ROLYMs6%2Bu-d4LrN5U4idH1Ghx6Q%40mail.gmail.com

src/backend/commands/typecmds.c

index 0eb8e0a2bb03da05b70517d54a4d2ccaa6f01c30..be6ffd6ddb0911bb0d0830c2605b0d97896f4432 100644 (file)
@@ -1767,7 +1767,7 @@ DefineRange(ParseState *pstate, CreateRangeStmt *stmt)
  * impossible to define a polymorphic constructor; we have to generate new
  * constructor functions explicitly for each range type.
  *
- * We actually define 4 functions, with 0 through 3 arguments.  This is just
+ * We actually define 2 functions, with 2 through 3 arguments.  This is just
  * to offer more convenience for the user.
  */
 static void