PostgreSQL version is 15.6
pg_stat_statements Extension issue in Azure Database for PostgreSQL flexible server
Naveen Kumar Kakarla (Quadrant Resource)
201
Reputation points
pg_stat_statements extension is enabled in Azure Database for PostgreSQL flexible server, but when I run the command select * from pg_stat_statements it is giving ERROR: relation "pg_stat_statements" does not exist
2 answers
Sort by: Most helpful
-
Naveen Kumar Kakarla (Quadrant Resource) 201 Reputation points
2024-07-02T16:14:56.0566667+00:00 -
GeethaThatipatri-MSFT 29,477 Reputation points Microsoft Employee
2024-07-03T00:07:55.8033333+00:00 @Naveen Kumar Kakarla (Quadrant Resource)
I hope you followed the below steps.Add PG_STAT_STATEMENTS under Azure.extensions
Step 2 Create extensions as shown
Please follow the above steps and let me know if you are still getting the error.
Regards
Geetha