Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience.
ERROR: column "total_exec_time" does not exist in PostgreSQL agent log file
Description
Top SQL statements are not collected for a PostgreSQL agent even though the pg_stat_statements extension has been installed.
Cause
After upgrading to PostgreSQL 13 or higher and enabling pg_stat_statements, the column in pg_stat_statements is renamed from "total_time" to "total_exec_time" as columns were added for planning times as well as execution times.
A PG_STAT_STATEMENTS extension created in the database at a lower version may still be missing the column total_exec_time.
Resolution
Verify that the pg_stat_statements extension has the column total_exec_time.
SELECT
column_name,
data_type,
character_maximum_length,
is_nullable,
column_default
FROM
information_schema.columns
WHERE
table_name = 'pg_stat_statements';
If the column is not present, then delete the extension
DROP EXTENSION pg_stat_statements;.
and then recreate the extension as per Resolution 1 in knowledgebase article 4226972
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Welcome to Quest Support
You can find online support help for Quest *product* on an affiliate support site. Click continue to be directed to the correct support content and assistance for *product*.
Search All Articles
IE 8, 9, & 10 No longer supported
The Quest Software Portal no longer supports IE8, 9, & 10 and it is recommended to upgrade your browser to the latest version of Internet Explorer or Chrome.