You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
153625: builtins: implement pg_get_function_arg_default r=rafiss a=rafiss
fixes#153352
Release note (sql change): The pg_get_function_arg_default builtin function has been implemented. This also causes the information_schema.parameters(parameter_default) column to be populated correctly.
Co-authored-by: Rafi Shamim <[email protected]>
Copy file name to clipboardExpand all lines: docs/generated/sql/functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3615,7 +3615,7 @@ may increase either contention or retry errors, or both.</p>
3615
3615
</span></td><td>Stable</td></tr>
3616
3616
<tr><td><aname="pg_function_is_visible"></a><code>pg_function_is_visible(oid: oid) → <ahref="bool.html">bool</a></code></td><td><spanclass="funcdesc"><p>Returns whether the function with the given OID belongs to one of the schemas on the search path.</p>
3617
3617
</span></td><td>Stable</td></tr>
3618
-
<tr><td><aname="pg_get_function_arg_default"></a><code>pg_get_function_arg_default(func_oid: oid, arg_num: int4) → <ahref="string.html">string</a></code></td><td><spanclass="funcdesc"><p>Get textual representation of a function argument’s default value. The second argument of this function is the argument number among all arguments (i.e. proallargtypes, <em>not</em> proargtypes), starting with 1, because that’s how information_schema.sql uses it. Currently, this always returns NULL, since CockroachDB does not support default values.</p>
3618
+
<tr><td><aname="pg_get_function_arg_default"></a><code>pg_get_function_arg_default(func_oid: oid, arg_num: int4) → <ahref="string.html">string</a></code></td><td><spanclass="funcdesc"><p>Get textual representation of a function argument’s default value. The second argument of this function is the argument number among all arguments (i.e. proallargtypes, <em>not</em> proargtypes), starting with 1, because that’s how information_schema.sql uses it.</p>
3619
3619
</span></td><td>Stable</td></tr>
3620
3620
<tr><td><aname="pg_get_function_arguments"></a><code>pg_get_function_arguments(func_oid: oid) → <ahref="string.html">string</a></code></td><td><spanclass="funcdesc"><p>Returns the argument list (with defaults) necessary to identify a function, in the form it would need to appear in within CREATE FUNCTION.</p>
0 commit comments