|
Function Description |
|---|
|
Returns the name of the current database. (Databases are called “catalogs” in the SQL standard, so |
|
Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement). |
|
This is equivalent to |
|
Returns the name of the schema that is first in the search path (or a null value if the search path is empty). This is the schema that will be used for any tables or other named objects that are created without specifying a target schema. |
|
Returns an array of the names of all schemas presently in the effective search path, in their priority order. (Items in the current search_path setting that do not correspond to existing, searchable schemas are omitted.) If the Boolean argument is |
|
Returns the user name of the current execution context. |
|
Returns the IP address of the current client, or |
|
Returns the IP port number of the current client, or |
|
Returns the IP address on which the server accepted the current connection, or |
|
Returns the IP port number on which the server accepted the current connection, or |
|
Returns the process ID of the server process attached to the current session. |
|
Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID from acquiring a lock, or an empty array if there is no such server process or it is not blocked. One server process blocks another if it either holds a lock that conflicts with the blocked process's lock request (hard block), or is waiting for a lock that would conflict with the blocked process's lock request and is ahead of it in the wait queue (soft block). When using parallel queries the result always lists client-visible process IDs (that is, Frequent calls to this function could have some impact on database performance, because it needs exclusive access to the lock manager's shared state for a short time. |
|
Returns the time when the server configuration files were last loaded. If the current session was alive at the time, this will be the time when the session itself re-read the configuration files (so the reading will vary a little in different sessions). Otherwise it is the time when the postmaster process re-read the configuration files. |
|
Returns the path name of the log file currently in use by the logging collector. The path includes the log_directory directory and the individual log file name. The result is This function is restricted to superusers and roles with privileges of the |
|
Returns a list of the loadable modules that are loaded into the current server session. The |
|
Returns the OID of the current session's temporary schema, or zero if it has none (because it has not created any temporary tables). |
|
Returns true if the given OID is the OID of another session's temporary schema. (This can be useful, for example, to exclude other sessions' temporary tables from a catalog display.) |
|
Returns true if a JIT compiler extension is available (see Chapter 30) and the jit configuration parameter is set to |
|
Returns true if the server has been compiled with NUMA support. |
|
Returns the set of names of asynchronous notification channels that the current session is listening to. |
|
Returns the fraction (0–1) of the asynchronous notification queue's maximum size that is currently occupied by notifications that are waiting to be processed. See LISTEN and NOTIFY for more information. |
|
Returns the time when the server started. |
|
Returns an array of the process ID(s) of the sessions that are blocking the server process with the specified process ID from acquiring a safe snapshot, or an empty array if there is no such server process or it is not blocked. A session running a Frequent calls to this function could have some impact on database performance, because it needs access to the predicate lock manager's shared state for a short time. |
|
Returns the current nesting level of PostgreSQL triggers (0 if not called, directly or indirectly, from inside a trigger). |
|
Returns the session user's name. |
|
Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as |
|
This is equivalent to |
'PostgreSQL' 카테고리의 다른 글
| [PostgresSQL] 복제테스트 돌려보는데 에러 떨어짐 (0) | 2025.10.06 |
|---|---|
| [PostgreSQL] 복구 시 테이블에 AccessExclusiveLock (0) | 2021.03.15 |
| [PostgreSQL] PostgreSQL standby recovery script (0) | 2021.02.08 |
| [PostgreSQL] PostgreSQL PGPOOL with failover (0) | 2021.02.08 |
| [PostgreSQL] PostgreSQL docker를 이용한 replication (0) | 2021.01.22 |