As stored in file loaded, with tabs: CREATE OR REPLACE FUNCTION tcl_module_version(text) RETURNS text AS $_$ set funcname $1 append funcname "Version" elog DEBUG "Calling TCL function $funcname" return [$funcname] $_$ LANGUAGE pltcl; As stored in database, tabs replaced with \x09: Name | Source code -------------------+------------------------------------------- tcl_module_version | \r : \x09set funcname $1\r : \x09append funcname "Version"\r : \x09elog DEBUG "Calling TCL function $funcname"\r : \x09return [$funcname]\r : (1 row)