From ea969fa15edec0bb9e8726860be5660b129ed993 Mon Sep 17 00:00:00 2001 From: "Renan A. Fonseca" Date: Tue, 1 Apr 2025 15:53:34 +0200 Subject: [PATCH] Document SQL functions' behavior regarding custom/generic plan --- doc/src/sgml/xfunc.sgml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index f3a3e4e2f8f..f8058d78fe6 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -249,6 +249,13 @@ CALL clean_emp(); + + + Except when inlined, an SQL function is always executed with a + generic plan. This behavior may not be desired in some situations. + + + The syntax of the CREATE FUNCTION command requires the function body to be written as a string constant. It is usually -- 2.47.0