Method Sql.pgsql()->getruntimeparameters()
- Method
getruntimeparameters
finalmapping(string:string) getruntimeparameters()- Returns
Currently active runtimeparameters for the open session; these are initialised by the options parameter during session creation, and then processed and returned by the server. Common values are:
"client_encoding":stringCharacter encoding for the client side, e.g.
"UTF8"or"SQL_ASCII"."server_encoding":stringCharacter encoding for the server side as determined when the database was created, e.g.
"UTF8"or"SQL_ASCII"."DateStyle":stringDate parsing/display, e.g.
"ISO, DMY"."TimeZone":stringDefault timezone used by the database, e.g.
"localtime"."standard_conforming_strings":stringWhen on, backslashes in strings must not be escaped any longer.
"session_authorization":stringDisplays the authorisationrole which the current session runs under.
"is_superuser":stringIndicates if the current authorisationrole has database-superuser privileges.
"integer_datetimes":stringReports wether the database supports 64-bit-integer dates and times.
"server_version":stringShows the server version, e.g.
"8.3.3".The values can be changed during a session using SET commands to the database. For other runtimeparameters check the PostgreSQL documentation.
- See also
https://www.postgresql.org/docs/current/static/runtime-config-client.html
- Note
This function is PostgreSQL-specific.