Session Information Functions
pg_backend_pid()
Description: Process ID of the service process connected to the current session.
Return type: integer.
Example:
1 2 3 4 5 | postgres=# SELECT pg_backend_pid(); pg_backend_pid ----------------- 140229352617744 (1 row) |
user
Description: Equivalent to current_user.
Return type: name.
Example:
1 2 3 4 5 | postgres=# SELECT user; current_user -------------- dbadmin (1 row) |
fq_metaserver_conninfo()
Description: Obtains the connection configuration of the metadata server.
Return type: record
Example:
1 2 3 4 5 6 | postgres=# SELECT fq_metaserver_conninfo(); fq_metaserver_conninfo ------------------------------------------------------------------------------------------------------------------------------------------------------------------- (*********,fabrcsql_llt_serverless,*********.lakeformation.lakecat.com,*********,*********,obs.cn-north-5.myhuaweicloud.com,false,*********) (1 row) |
version()
Description: Version information. version returns a string describing the server's version information.
Return type: text.
Example:
1 2 3 4 5 | postgres=# SELECT version(); version --------------------------------------------------------------------------------------------------------------------------------------- PostgreSQL 9.2.4 gsql ((GaussDB 8.2.1 build 39137c2d) compiled at 2022-09-23 15:43:11 commit 3629 last mr 5138 release) on x86_64-unknown-linux-gnu, compiled by g++ (GCC) 5.4.0, 64-bit (1 row) |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot