mirror of
https://github.com/postgres/postgres.git
synced 2026-10-29 15:58:33 +03:00
It's reasonable to specify that the input string passed to these functions isn't modified. In each case, the input string is passed down to CStringGetDatum(), which already takes a const char *, so this change just pushes that API specification one level up. A couple of callers benefit from this by no longer having to cast away a const qualifier. A few more functions that call input functions internally are changed so that they can now offer a const qualified input string to their callers. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/flat/459217ca-3840-4452-8cd1-8f9b47e8d479%40eisentraut.org