From: Daniel Gustafsson Date: Wed, 29 Jul 2026 10:37:02 +0000 (+0200) Subject: doc: Add getdatabaseencoding to function docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa2c1ebd1757db6032cf81b53f973941be77747;p=thirdparty%2Fpostgresql.git doc: Add getdatabaseencoding to function docs The getdatabaseencoding function was added in bf00bbb0c494 in 1998 but was never documented. While mostly used in tests, there is no reason not to document it as this function isn't going anywhere and is already used in extensions. Author: Ian Barwick Reviewed-by: Thom Brown Reviewed-by: surya poondla Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/CAB8KJ=ij+pznQGub=DkyJuKL=tC=Q=07qSahTyw7TLb0DdNJsg@mail.gmail.com --- diff --git a/doc/src/sgml/func/func-string.sgml b/doc/src/sgml/func/func-string.sgml index 0786573d7be..fb7408ee014 100644 --- a/doc/src/sgml/func/func-string.sgml +++ b/doc/src/sgml/func/func-string.sgml @@ -753,6 +753,23 @@ + + + + getdatabaseencoding + + getdatabaseencoding ( ) + name + + + Returns current database encoding name. + + + getdatabaseencoding() + UTF8 + + +