1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-29 15:58:33 +03:00
Files
postgres/src/include/bootstrap
Peter Eisentraut 5767fece95 Change InputFunctionCall* to take a const char *str
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
2026-08-25 10:26:50 +02:00
..