Fix view in migration. Add by lang metric to consumer.

This commit is contained in:
mathan 2024-02-22 18:54:29 -08:00
parent 600dac7694
commit db425b1d5f
11 changed files with 101 additions and 33 deletions

View file

@ -56,6 +56,11 @@ Restart errors
`update repos set failed_attempts=0, last_error='' where failed_attempts >0;`
# MONITORING
More verbose logging for queries DEBUG1-DEBUG5
`set client_min_messages = 'DEBUG5';`
Take a look at slow queries
```
SELECT pid, age(clock_timestamp(), query_start), state, query
@ -64,6 +69,9 @@ WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start asc;
```
Monitor index progress
`select * from pg_stat_progress_create_index;`
Explore new collection types
```