Method Sql.pgsql()->getstatistics()
- Method
getstatistics
finalmapping(string:mixed) getstatistics()- Returns
A set of statistics for the current session:
"warnings_dropped":intNumber of warnings/notices generated by the database but not collected by the application by using error() after the statements that generated them.
"skipped_describe_count":intNumber of times the driver skipped asking the database to describe the statement parameters because it was already cached. Only available if PG_STATS is compile-time enabled.
"used_prepared_statements":intNumber of times prepared statements were used from cache instead of reparsing in the current session. Only available if PG_STATS is compile-time enabled.
"current_prepared_statements":intCache size of currently prepared statements.
"current_prepared_statement_hits":intSum of the number hits on statements in the current statement cache.
"prepared_statement_count":intTotal number of prepared statements generated.
"portals_opened_count":intTotal number of portals opened, i.e. number of statements issued to the database. Only available if PG_STATS is compile-time enabled.
"bytes_received":intTotal number of bytes received from the database so far.
"messages_received":intTotal number of messages received from the database (one SQL-statement requires multiple messages to be exchanged).
"portals_in_flight":intCurrently still open portals, i.e. running statements.
- Note
This function is PostgreSQL-specific.