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
Show "internal name" not "source code" in psql's \df+ command.
Our previous habit of showing the full function body is really
pretty unfriendly for tabular viewing of functions, and now that
we have \sf and \ef commands there seems no good reason why \df+
has to do it. It still seems to make sense to show prosrc for
internal and C-language functions, since in those cases prosrc
is just the C function name; but then let's rename the column to
"Internal name" which is a more accurate descriptor.
Isaac Morland
Discussion: https://postgr.es/m/CAMsGm5eqKc6J1=Lwn=ZONG=6ZDYWRQ4cgZQLqMuZGB1aVt_JBg@mail.gmail.com
-- we have to use functions with a predictable owner name, so make a role
5253
+
create role regress_psql_user superuser;
5254
+
set session authorization regress_psql_user;
5255
+
create function psql_df_internal (float8)
5256
+
returns float8
5257
+
language internal immutable parallel safe strict
5258
+
as 'dsin';
5259
+
create function psql_df_sql (x integer)
5260
+
returns integer
5261
+
security definer
5262
+
begin atomic select x + 1; end;
5263
+
create function psql_df_plpgsql ()
5264
+
returns void
5265
+
language plpgsql
5266
+
as $$ begin return; end; $$;
5267
+
comment on function psql_df_plpgsql () is 'some comment';
5268
+
\df+ psql_df_*
5269
+
List of functions
5270
+
Schema | Name | Result data type | Argument data types | Type | Volatility | Parallel | Owner | Security | Access privileges | Language | Internal name | Description
0 commit comments