openGauss=# \df
********* QUERY **********
SELECT n.nspname as "Schema",
p.proname as "Name",
pg_catalog.pg_get_function_result(p.oid) as "Result data type",
pg_catalog.pg_get_function_arguments(p.oid) as "Argument data types",
CASEWHEN p.proisagg THEN'agg'WHEN p.proiswindow THEN'window'WHEN p.prorettype = 'pg_catalog.trigger'::pg_catalog.regtype THEN'trigger'ELSE'normal'ENDas "Type" ,
fencedmode as "fencedmode"
,
propackage as "propackage"
,
prokind as "prokind"
FROM pg_catalog.pg_proc p
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
WHERE pg_catalog.pg_function_is_visible(p.oid)
AND n.nspname <> 'pg_catalog'AND n.nspname <> 'db4ai'AND n.nspname <> 'information_schema'ORDERBY1, 2, 4;
**************************
List offunctionsSchema | Name | Result data type | Argument data types | Type | fencedmode | propackage | prokind
--------+-----------+------------------+--------------------------------------------------+--------+------------+------------+---------public | fuc_worth | numeric | price numeric, amount integer, OUT worth numeric | normal | f | f | f
(1row)
openGauss=# select * from test;
id
---- 1
(1 row)
openGauss=# \timing on
Timing is on.
openGauss=# select * from test;
id
---- 1
(1 row)
Time: 0.352 ms
openGauss=# \?
General
\copyright show openGauss usage and distribution terms
\g [FILE] or ; execute query (and send results to file or |pipe)
\h(\help) [NAME] help on syntax of SQL commands, * for all commands
\parallel [on [num]|off] toggle status of execute (currently off)
\q quit gsql
Query Buffer
\e [FILE] [LINE] edit the query buffer (or file) with external editor
\ef [FUNCNAME [LINE]] edit function definition with external editor
\p show the contents of the query buffer
\r reset (clear) the query buffer
\w FILE write query buffer to file
Input/Output
\copy ... perform SQL COPY with data stream to the client host
\echo [STRING] write string to standard output
\i FILE execute commands from file
\i+ FILE KEY execute commands from encrypted file
\ir FILE as \i, but relative to location of current script
\ir+ FILE KEY as \i+, but relative to location of current script
\o [FILE] send all query results to file or |pipe
\qecho [STRING] write string to query output stream (see \o)
openGauss=# \conninfo
You are connected todatabase "postgres" asuser "omm" via socket in "/opt/huawei/tmp" at port "15400".
openGauss=# \c mydb
Non-SSL connection (SSL connectionis recommended when requiring high-security)
You are now connected todatabase "mydb" asuser "omm".
mydb=# \conninfo
You are connected todatabase "mydb" asuser "omm" via socket in "/opt/huawei/tmp" at port "15400".