Database : Statistics of activity| datid oid(10) | datname name(2147483647) | pid int4(11) | leader_pid int4(11) | usesysid oid(10) | usename name(2147483647) | application_name text(2147483647) | client_addr inet(2147483647) | client_hostname text(2147483647) | client_port int4(11) | backend_start timestamptz(35) | xact_start timestamptz(35) | query_start timestamptz(35) | state_change timestamptz(35) | wait_event_type text(2147483647) | wait_event text(2147483647) | state text(2147483647) | backend_xid xid(2147483647) | backend_xmin xid(2147483647) | query_id int8(20) | query text(2147483647) | backend_type text(2147483647) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | postgres | 1427 | 10 | rdsadmin | pg_cron scheduler | 2025-10-09 16:28:05.073515-03 | Extension | Extension | 804233201376169930 | pg_cron launcher | |||||||||||
| 1428 | 10 | rdsadmin | 2025-10-09 16:28:05.073701-03 | Activity | LogicalLauncherMain | logical replication launcher | |||||||||||||||
| 3333716331 | revizia | 2065 | 16402 | postgres | core-api-job | 10.0.24.185 | 25537 | 2025-12-09 07:06:00.041521-03 | 2025-12-09 07:06:00.512939-03 | 2025-12-09 07:06:00.512972-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 5 | postgres | 20669 | 3333668727 | rdsproxyadmin | 10.0.24.185 | 57653 | 2025-12-09 05:26:00.121135-03 | 2025-12-09 07:07:29.568559-03 | 2025-12-09 07:07:29.568624-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 5 | postgres | 20670 | 3333668727 | rdsproxyadmin | 10.0.24.138 | 59703 | 2025-12-09 05:26:00.212713-03 | 2025-12-09 07:07:28.876782-03 | 2025-12-09 07:07:28.876855-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 5 | postgres | 20671 | 3333668727 | rdsproxyadmin | 10.0.24.253 | 16027 | 2025-12-09 05:26:00.350406-03 | 2025-12-09 07:07:29.054158-03 | 2025-12-09 07:07:29.054236-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 3333716331 | revizia | 768 | 16402 | postgres | core-api | 10.0.24.71 | 53087 | 2025-12-09 07:00:00.018456-03 | 2025-12-09 07:07:27.543933-03 | 2025-12-09 07:07:27.543986-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
| 5 | postgres | 20672 | 3333668727 | rdsproxyadmin | 10.0.20.251 | 52137 | 2025-12-09 05:26:00.509236-03 | 2025-12-09 07:07:28.983952-03 | 2025-12-09 07:07:28.984035-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 5 | postgres | 20674 | 3333668727 | rdsproxyadmin | 10.0.20.84 | 11813 | 2025-12-09 05:26:00.887763-03 | 2025-12-09 07:07:29.237272-03 | 2025-12-09 07:07:29.237321-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 1665815312 | documents | 32747 | 16402 | postgres | download-document-api | 10.0.24.253 | 28797 | 2025-12-09 06:56:00.017635-03 | 2025-12-09 07:06:50.257329-03 | 2025-12-09 07:06:50.258277-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 5 | postgres | 32180 | 3333668727 | rdsproxyadmin | 10.0.24.81 | 56969 | 2025-12-09 03:20:00.563654-03 | 2025-12-09 07:07:29.532424-03 | 2025-12-09 07:07:29.532493-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 16450 | fiscal | 2068 | 16402 | postgres | fiscal-intelligence-api | 10.0.20.251 | 59019 | 2025-12-09 07:06:00.261657-03 | 2025-12-09 07:06:00.507117-03 | 2025-12-09 07:06:00.507135-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 5 | postgres | 20675 | 3333668727 | rdsproxyadmin | 10.0.20.46 | 35783 | 2025-12-09 05:26:00.948308-03 | 2025-12-09 07:07:29.444501-03 | 2025-12-09 07:07:29.444587-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 1665815312 | documents | 624 | 16402 | postgres | nfe-lambda-aws | 10.0.24.185 | 52231 | 2025-12-09 06:59:00.01312-03 | 2025-12-09 07:07:26.887037-03 | 2025-12-09 07:07:26.889624-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 25054 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.24.138 | 46019 | 2025-12-09 05:59:03.97968-03 | 2025-12-09 07:07:25.234387-03 | 2025-12-09 07:07:25.234663-03 | Client | ClientRead | idle | client backend | |||||||
| 5 | postgres | 20676 | 3333668727 | rdsproxyadmin | 10.0.24.71 | 46301 | 2025-12-09 05:26:00.95202-03 | 2025-12-09 07:07:29.002473-03 | 2025-12-09 07:07:29.00254-03 | Client | ClientRead | idle | 2731926746234896378 | SELECT current_setting('transaction_read_only') AS transaction_read_only, current_setting('max_connections') AS max_connections, EXTRACT(EPOCH FROM now() - pg_postmaster_start_time()) AS uptime; | client backend | ||||||
| 3333716331 | revizia | 2074 | 16402 | postgres | rvz-sintegra-job | 10.0.24.253 | 65363 | 2025-12-09 07:06:02.113317-03 | 2025-12-09 07:06:07.816766-03 | 2025-12-09 07:06:07.816807-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 2078 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.24.81 | 12779 | 2025-12-09 07:06:05.971385-03 | 2025-12-09 07:06:06.870737-03 | 2025-12-09 07:06:07.638798-03 | Client | ClientRead | idle | 957357389483338053 | select e.cnpj as CNpj, (dsc is null) as NovaEmpresa, dsc.data_inicio as DataInicio, dsc.data_fim as DataFim from certificado c left join lateral (select ce2.id, ce2.certificado_id, ce2.empresa_id, ce2.created_at from conta_empresa ce2 left join empresa e2 on (ce2.empresa_id = e2.id) where ce2.certificado_id = c.id and ce2.empresa_id = (select e3.id from empresa e3 inner join conta_empresa ce3 on e3.id = ce3.empresa_id inner join certificado c3 on ce3.certificado_id = c3.id where substring(e3.cnpj,1,8) = substring(e2.cnpj,1,8) and c3.data_expiracao > NOW() and e3.tipo_empresa = 'MATRIZ' limit 1) and c.data_expiracao > NOW() and e2.tipo_empresa = 'MATRIZ' order by created_at desc limit 1) ce on (true) left join empresa e on (ce.empresa_id = e.id) left join download_sped_controle_empresa dsc on (dsc.conta_empresa_id = ce.id) where ce.id is not null and e.tipo_empresa = 'MATRIZ' order by (dsc is null), dsc.data_inicio, ce.created_at desc | client backend | |||||
| 1665815312 | documents | 27017 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.24.185 | 27367 | 2025-12-09 06:14:02.736667-03 | 2025-12-09 07:07:27.643696-03 | 2025-12-09 07:07:27.643743-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2092 | 16402 | postgres | document-worker | 10.0.24.81 | 25471 | 2025-12-09 07:06:08.581638-03 | 2025-12-09 07:06:08.772228-03 | 2025-12-09 07:06:08.773149-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1772 | 16402 | postgres | core-api | 10.0.24.81 | 38695 | 2025-12-09 07:04:04.494732-03 | 2025-12-09 07:07:27.555783-03 | 2025-12-09 07:07:27.555843-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1773 | 16402 | postgres | core-api | 10.0.24.253 | 19639 | 2025-12-09 07:04:04.505128-03 | 2025-12-09 07:07:28.811144-03 | 2025-12-09 07:07:28.81117-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 31584 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.24.81 | 56279 | 2025-12-09 06:48:02.817126-03 | 2025-12-09 07:05:57.73405-03 | 2025-12-09 07:05:57.734273-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1628 | 16402 | postgres | nfe-lambda-aws | 10.0.20.251 | 35315 | 2025-12-09 07:03:07.949804-03 | 2025-12-09 07:07:26.265856-03 | 2025-12-09 07:07:26.268496-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1917 | 16402 | postgres | nfe-lambda-aws | 10.0.24.138 | 17153 | 2025-12-09 07:05:01.253374-03 | 2025-12-09 07:05:01.992302-03 | 2025-12-09 07:05:01.994804-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1918 | 16402 | postgres | nfe-lambda-aws | 10.0.24.138 | 13247 | 2025-12-09 07:05:01.261921-03 | 2025-12-09 07:07:11.11306-03 | 2025-12-09 07:07:11.115756-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1921 | 16402 | postgres | rvz-sintegra-job | 10.0.24.138 | 12107 | 2025-12-09 07:05:02.128909-03 | 2025-12-09 07:05:37.807848-03 | 2025-12-09 07:05:37.807966-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2178 | 16402 | postgres | download-document-api | 10.0.24.138 | 16715 | 2025-12-09 07:07:00.020131-03 | 2025-12-09 07:07:29.567592-03 | 2025-12-09 07:07:29.567741-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2191 | 16402 | postgres | rvz-esocial-importador | 10.0.24.185 | 42871 | 2025-12-09 07:07:05.056037-03 | 2025-12-09 07:07:05.095373-03 | 2025-12-09 07:07:05.096419-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 32211 | 16402 | postgres | ecac-situacao-fiscal-api | 10.0.20.251 | 51187 | 2025-12-09 06:52:31.529102-03 | 2025-12-09 07:07:07.862083-03 | 2025-12-09 07:07:07.862198-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 2194 | 16402 | postgres | rvz-esocial-importador | 10.0.24.253 | 20659 | 2025-12-09 07:07:05.100377-03 | 2025-12-09 07:07:08.947443-03 | 2025-12-09 07:07:08.947531-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 632 | 16402 | postgres | nfe-lambda-aws | 10.0.24.138 | 57669 | 2025-12-09 06:59:00.415621-03 | 2025-12-09 07:05:03.063083-03 | 2025-12-09 07:05:03.065044-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 32498 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.46 | 12547 | 2025-12-09 06:54:09.645382-03 | 2025-12-09 07:07:29.579778-03 | 2025-12-09 07:07:29.57987-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 1774 | 16402 | postgres | core-api | 10.0.24.71 | 1649 | 2025-12-09 07:04:04.50611-03 | 2025-12-09 07:07:27.560556-03 | 2025-12-09 07:07:27.560591-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1633 | 16402 | postgres | nfe-lambda-aws | 10.0.24.138 | 35597 | 2025-12-09 07:03:08.479087-03 | 2025-12-09 07:05:01.295775-03 | 2025-12-09 07:05:01.29816-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16451 | cloudworks | 7651 | 16402 | postgres | pgAdmin 4 - DB:cloudworks | 10.0.28.38 | 53326 | 2025-12-03 17:07:43.001398-03 | 2025-12-03 17:07:44.69647-03 | 2025-12-03 17:07:44.701295-03 | Client | ClientRead | idle | -3984013937811865237 | SELECT roles.oid as id, roles.rolname as name, roles.rolsuper as is_superuser, CASE WHEN roles.rolsuper THEN true ELSE roles.rolcreaterole END as can_create_role, CASE WHEN roles.rolsuper THEN true ELSE roles.rolcreatedb END as can_create_db, CASE WHEN 'pg_signal_backend'=ANY(ARRAY(WITH RECURSIVE cte AS ( SELECT pg_roles.oid,pg_roles.rolname FROM pg_roles WHERE pg_roles.oid = roles.oid UNION ALL SELECT m.roleid,pgr.rolname FROM cte cte_1 JOIN pg_auth_members m ON m.member = cte_1.oid JOIN pg_roles pgr ON pgr.oid = m.roleid) SELECT rolname FROM cte)) THEN True ELSE False END as can_signal_backend FROM pg_catalog.pg_roles as roles WHERE rolname = current_user | client backend | |||||
| 1665815312 | documents | 450 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.251 | 24871 | 2025-12-09 06:57:21.617548-03 | 2025-12-09 07:07:29.116206-03 | 2025-12-09 07:07:29.116247-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1634 | 16402 | postgres | nfe-lambda-aws | 10.0.24.138 | 44923 | 2025-12-09 07:03:08.557545-03 | 2025-12-09 07:05:01.572937-03 | 2025-12-09 07:05:01.575123-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 2195 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.20.84 | 63789 | 2025-12-09 07:07:05.652734-03 | 2025-12-09 07:07:06.767671-03 | 2025-12-09 07:07:06.772502-03 | Client | ClientRead | idle | -8625620423702777529 | WITH status_lista AS ( SELECT unnest(ARRAY[ 'PENDENTE', 'CONCLUIDO', 'EM_PROCESSAMENTO', 'COM_ERRO', 'COM_ERRO_PERMANENTE' ]) AS status ), recorrente_lista AS ( SELECT unnest(ARRAY[true, false]) AS recorrente ), combinacoes AS ( SELECT s.status, r.recorrente FROM status_lista s CROSS JOIN recorrente_lista r ), contagens AS ( SELECT status, recorrente, COUNT(*) AS qtd FROM cfe_periodo_importacao_job WHERE data_fim <= now() AT TIME ZONE 'America/Sao_Paulo' AND status IS NOT NULL AND status IN ('PENDENTE','CONCLUIDO','EM_PROCESSAMENTO','COM_ERRO','COM_ERRO_PERMANENTE') GROUP BY status, recorrente ) SELECT COALESCE(ct.qtd, 0) AS "Qtd", c.status AS "Status", c.recorrente AS "Recorrente" FROM combinacoes c LEFT JOIN contagens ct ON c.status = ct.status AND c.recorrente = ct.recorrente ORDER BY c.status, c.recorrente; | client backend | |||||
| 1665815312 | documents | 22415 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.138 | 36975 | 2025-12-09 05:39:18.697025-03 | 2025-12-09 07:07:28.840758-03 | 2025-12-09 07:07:28.840975-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 2097 | 16402 | postgres | nfe-lambda-aws | 10.0.20.84 | 11081 | 2025-12-09 07:06:16.549786-03 | 2025-12-09 07:06:16.568462-03 | 2025-12-09 07:06:16.568499-03 | Client | ClientRead | idle | -6478377226548179738 | SELECT cn.cnpj, cn.notificacao, cn.valor, cn.intervalo, e.email FROM configuracao_notificacao cn INNER JOIN configuracao_notificacao_email cne ON cn.id = cne.configuracao_notificacao_id INNER JOIN email e ON e.id = cne.email_id WHERE cn.notificacao = $1 AND cn.tipo_notificacao = 'EMAIL' AND cn.cnpj IN ($2) | client backend | |||||
| 3333716331 | revizia | 32668 | 16402 | postgres | core-api | 10.0.24.138 | 19879 | 2025-12-09 06:55:18.863528-03 | 2025-12-09 07:07:28.811141-03 | 2025-12-09 07:07:28.811205-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
| 3333716331 | revizia | 2197 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.24.185 | 39663 | 2025-12-09 07:07:05.911298-03 | 2025-12-09 07:07:06.863816-03 | 2025-12-09 07:07:07.636583-03 | Client | ClientRead | idle | 957357389483338053 | select e.cnpj as CNpj, (dsc is null) as NovaEmpresa, dsc.data_inicio as DataInicio, dsc.data_fim as DataFim from certificado c left join lateral (select ce2.id, ce2.certificado_id, ce2.empresa_id, ce2.created_at from conta_empresa ce2 left join empresa e2 on (ce2.empresa_id = e2.id) where ce2.certificado_id = c.id and ce2.empresa_id = (select e3.id from empresa e3 inner join conta_empresa ce3 on e3.id = ce3.empresa_id inner join certificado c3 on ce3.certificado_id = c3.id where substring(e3.cnpj,1,8) = substring(e2.cnpj,1,8) and c3.data_expiracao > NOW() and e3.tipo_empresa = 'MATRIZ' limit 1) and c.data_expiracao > NOW() and e2.tipo_empresa = 'MATRIZ' order by created_at desc limit 1) ce on (true) left join empresa e on (ce.empresa_id = e.id) left join download_sped_controle_empresa dsc on (dsc.conta_empresa_id = ce.id) where ce.id is not null and e.tipo_empresa = 'MATRIZ' order by (dsc is null), dsc.data_inicio, ce.created_at desc | client backend | |||||
| 1665815312 | documents | 1780 | 16402 | postgres | mensageria-api | 10.0.24.185 | 50277 | 2025-12-09 07:04:05.666557-03 | 2025-12-09 07:07:21.859017-03 | 2025-12-09 07:07:21.859029-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 772 | 16402 | postgres | download-document-api | 10.0.24.138 | 20207 | 2025-12-09 07:00:00.425434-03 | 2025-12-09 07:07:00.033811-03 | 2025-12-09 07:07:00.033842-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 16450 | fiscal | 7583 | 16402 | postgres | pgAdmin 4 - DB:fiscal | 10.0.28.38 | 49050 | 2025-12-03 17:07:06.770267-03 | 2025-12-09 07:07:14.379488-03 | 2025-12-09 07:07:14.383528-03 | Client | ClientRead | idle | -6488867169811202377 | /*pga4dash*/ SELECT 'session_stats' AS chart_name, pg_catalog.row_to_json(t) AS chart_data FROM (SELECT (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Total", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'active' AND datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Active", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'idle' AND datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Idle" ) t UNION ALL SELECT 'tps_stats' AS chart_name, pg_catalog.row_to_json(t) AS chart_data FROM (SELECT (SELECT sum(xact_commit) + sum(xact_rollback) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Transactions", (SELECT sum(xact_commit) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Commits", (SELECT sum(xact_rollback) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Rollbacks" ) t UNION ALL SELECT 'ti_stats' AS chart_name, pg_catalog.row_to_json(t) AS chart_data FROM (SELECT (SELECT sum(tup_inserted) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Inserts", (SELECT sum(tup_updated) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Updates", (SELECT sum(tup_deleted) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Deletes" ) t UNION ALL SELECT 'to_stats' AS chart_name, pg_catalog.row_to_json(t) AS chart_data FROM (SELECT (SELECT sum(tup_fetched) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Fetched", (SELECT sum(tup_returned) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Returned" ) t UNION ALL SELECT 'bio_stats' AS chart_name, pg_catalog.row_to_json(t) AS chart_data FROM (SELECT (SELECT sum(blks_read) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Reads", (SELECT sum(blks_hit) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 16450)) AS "Hits" ) t | client backend | |||||
| 16450 | fiscal | 2213 | 16402 | postgres | rvz-esocial-importador | 10.0.24.253 | 33253 | 2025-12-09 07:07:08.795994-03 | 2025-12-09 07:07:08.927258-03 | 2025-12-09 07:07:08.927267-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
| 5 | postgres | 7877 | 16402 | postgres | pgAdmin 4 - CONN:4537900 | 10.0.28.38 | 56472 | 2025-12-03 17:09:08.27267-03 | 2025-12-08 19:13:11.720996-03 | 2025-12-08 19:13:11.72103-03 | Client | ClientRead | idle | -3200963977824915130 | SELECT oid, pg_catalog.format_type(oid, NULL) AS typname FROM pg_catalog.pg_type WHERE oid = ANY($1) ORDER BY oid; | client backend | |||||
| 1665815312 | documents | 1924 | 16402 | postgres | nfe-lambda-aws | 10.0.24.71 | 18841 | 2025-12-09 07:05:02.547079-03 | 2025-12-09 07:07:28.074247-03 | 2025-12-09 07:07:28.07691-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 2216 | 16402 | postgres | econet-scrapper | 10.0.24.81 | 38551 | 2025-12-09 07:07:09.286567-03 | 2025-12-09 07:07:09.302571-03 | 2025-12-09 07:07:09.30258-03 | Client | ClientRead | idle | 4808936042342407727 | SET application_name = 'econet-scrapper' | client backend | |||||
| 1665815312 | documents | 32216 | 16402 | postgres | mensageria-api | 10.0.24.253 | 26547 | 2025-12-09 06:52:33.199687-03 | 2025-12-09 07:06:16.995434-03 | 2025-12-09 07:06:16.99548-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 2111 | 16402 | postgres | dctfweb-importador-from-sqs | 10.0.24.253 | 8435 | 2025-12-09 07:06:24.714237-03 | 2025-12-09 07:06:24.728211-03 | 2025-12-09 07:06:24.728224-03 | Client | ClientRead | idle | client backend | |||||||
| 16384 | rdsadmin | 16273 | 10 | rdsadmin | PostgreSQL JDBC Driver | -1 | 2025-11-26 22:31:10.413433-03 | 2025-12-09 07:07:22.010012-03 | 2025-12-09 07:07:22.010024-03 | Client | ClientRead | idle | 3326913007740874862 | SELECT value FROM rds_heartbeat2 | client backend | ||||||
| 16450 | fiscal | 2110 | 16402 | postgres | dctfweb-importador-from-sqs | 10.0.20.251 | 35251 | 2025-12-09 07:06:24.713946-03 | 2025-12-09 07:06:24.730251-03 | 2025-12-09 07:06:24.730378-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 7606 | 16402 | postgres | pgAdmin 4 - DB:revizia | 10.0.28.38 | 55970 | 2025-12-03 17:07:19.220611-03 | 2025-12-08 15:10:33.401084-03 | 2025-12-08 15:10:33.401422-03 | Client | ClientRead | idle | 7591777486578982143 | /*pga4dash*/ SELECT gid, database, owner, transaction, pg_catalog.to_char(prepared, 'YYYY-MM-DD HH24:MI:SS TZ') AS prepared FROM pg_catalog.pg_prepared_xacts WHERE database = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)ORDER BY gid, database, owner | client backend | |||||
| 16450 | fiscal | 2217 | 16402 | postgres | econet-scrapper | 10.0.20.46 | 59081 | 2025-12-09 07:07:11.055331-03 | 2025-12-09 07:07:11.075491-03 | 2025-12-09 07:07:11.075501-03 | Client | ClientRead | idle | 4808936042342407727 | SET application_name = 'econet-scrapper' | client backend | |||||
| 1665815312 | documents | 1925 | 16402 | postgres | nfe-lambda-aws | 10.0.24.71 | 53263 | 2025-12-09 07:05:02.748023-03 | 2025-12-09 07:05:02.948476-03 | 2025-12-09 07:05:02.951206-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 1782 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.24.81 | 61959 | 2025-12-09 07:04:05.870957-03 | 2025-12-09 07:06:06.596801-03 | 2025-12-09 07:06:06.600789-03 | Client | ClientRead | idle | -6488867169811202377 | WITH numeracoes AS ( SELECT COUNT(CASE WHEN nu.utilizado = 'SIM' THEN 1 END) AS qtd_numeracao_utilizada, COUNT(CASE WHEN nu.utilizado = 'NAO' THEN 1 END) AS qtd_numeracao_disponivel FROM numeracao_utilizada nu JOIN controle_numeracao cn ON nu.controle_numeracao_id = cn.id WHERE cn.id = (SELECT MAX(id) FROM controle_numeracao) ), notas_emitidas AS ( SELECT to_char(data_rps, 'YYYY-MM') AS periodo, COUNT(1) AS quantidade_notas_emitidas FROM dados_emissao_nfse WHERE serie_rps = '01SN' GROUP BY to_char(data_rps, 'YYYY-MM') ORDER BY to_char(data_rps, 'YYYY-MM') DESC LIMIT 1 ) SELECT n.qtd_numeracao_utilizada QtdUtilizada, n.qtd_numeracao_disponivel QtdDisponivel, ne.periodo Periodo, ne.quantidade_notas_emitidas QtdNotasEmitidas FROM numeracoes n CROSS JOIN notas_emitidas ne | client backend | |||||
| 1665815312 | documents | 637 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.185 | 53541 | 2025-12-09 06:59:02.07003-03 | 2025-12-09 07:05:02.209995-03 | 2025-12-09 07:05:02.210022-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2220 | 16402 | postgres | mensageria-api | 10.0.24.185 | 23453 | 2025-12-09 07:07:13.365589-03 | 2025-12-09 07:07:28.644321-03 | 2025-12-09 07:07:28.645601-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 22645 | 16402 | postgres | pgAdmin 4 - CONN:9597892 | 10.0.28.38 | 48356 | 2025-12-08 13:38:23.534647-03 | 2025-12-08 14:26:01.015244-03 | 2025-12-08 14:26:01.015279-03 | Client | ClientRead | idle | -3200963977824915130 | SELECT oid, pg_catalog.format_type(oid, NULL) AS typname FROM pg_catalog.pg_type WHERE oid = ANY($1) ORDER BY oid; | client backend | |||||
| 1665815312 | documents | 2112 | 16402 | postgres | dctfweb-importador-from-sqs | 10.0.24.253 | 62849 | 2025-12-09 07:06:24.715475-03 | 2025-12-09 07:06:24.729399-03 | 2025-12-09 07:06:24.729498-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 482 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.24.138 | 24283 | 2025-12-09 06:57:45.262553-03 | 2025-12-09 07:05:35.652491-03 | 2025-12-09 07:05:35.652553-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 2113 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.46 | 48019 | 2025-12-09 07:06:24.879209-03 | 2025-12-09 07:07:25.877726-03 | 2025-12-09 07:07:25.877797-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 31792 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.71 | 48057 | 2025-12-09 06:49:21.617088-03 | 2025-12-09 07:06:04.568018-03 | 2025-12-09 07:06:04.568258-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 640 | 16402 | postgres | nfe-lambda-aws | 10.0.20.251 | 3769 | 2025-12-09 06:59:02.305172-03 | 2025-12-09 07:05:04.82529-03 | 2025-12-09 07:05:04.828012-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 2119 | 16402 | postgres | mensageria-api | 10.0.20.251 | 22165 | 2025-12-09 07:06:29.579959-03 | 2025-12-09 07:07:29.582452-03 | 2025-12-09 07:07:29.582693-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1926 | 16402 | postgres | nfe-lambda-aws | 10.0.20.84 | 17329 | 2025-12-09 07:05:02.838416-03 | 2025-12-09 07:05:03.931528-03 | 2025-12-09 07:05:03.934258-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 31895 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.24.71 | 40313 | 2025-12-09 06:50:01.913403-03 | 2025-12-09 07:07:27.734451-03 | 2025-12-09 07:07:27.734529-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 1927 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.24.185 | 18679 | 2025-12-09 07:05:04.148386-03 | 2025-12-09 07:07:24.295796-03 | 2025-12-09 07:07:24.295808-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 2122 | 16402 | postgres | rvz-sintegra-job | 10.0.24.81 | 20265 | 2025-12-09 07:06:32.110465-03 | 2025-12-09 07:07:07.863218-03 | 2025-12-09 07:07:07.863577-03 | Client | ClientRead | idle | client backend | |||||||
| 5 | postgres | 7629 | 16402 | postgres | pgAdmin 4 - DB:postgres | 10.0.28.38 | 50466 | 2025-12-03 17:07:31.078511-03 | 2025-12-08 19:13:18.870724-03 | 2025-12-08 19:13:18.871001-03 | Client | ClientRead | idle | 5361310776981672498 | SELECT CASE WHEN (SELECT count(extname) FROM pg_catalog.pg_extension WHERE extname='bdr') > 0 THEN 'pgd' WHEN (SELECT COUNT(*) FROM pg_replication_slots) > 0 THEN 'log' ELSE NULL END as type; | client backend | |||||
| 1665815312 | documents | 1934 | 16402 | postgres | document-api | 10.0.24.185 | 9271 | 2025-12-09 07:05:04.59151-03 | 2025-12-09 07:07:29.658545-03 | 2025-12-09 07:07:29.662502-03 | 2025-12-09 07:07:29.662502-03 | active | 1033481731 | -6815546958608512757 | select * from pg_stat_activity | client backend | |||||
| 16450 | fiscal | 2130 | 16402 | postgres | rps-barueri-emissao-api | 10.0.24.71 | 42857 | 2025-12-09 07:06:36.815548-03 | 2025-12-09 07:06:50.442606-03 | 2025-12-09 07:06:50.442633-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 641 | 16402 | postgres | nfe-lambda-aws | 10.0.24.253 | 54769 | 2025-12-09 06:59:02.369517-03 | 2025-12-09 07:07:16.751528-03 | 2025-12-09 07:07:16.754219-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1935 | 16402 | postgres | nfe-lambda-aws | 10.0.24.138 | 60151 | 2025-12-09 07:05:05.229529-03 | 2025-12-09 07:05:44.845883-03 | 2025-12-09 07:05:44.845932-03 | Client | ClientRead | idle | -7654691353143170484 | SELECT cn.cnpj, cn.notificacao, cn.valor, cn.intervalo, e.email FROM configuracao_notificacao cn INNER JOIN configuracao_notificacao_email cne ON cn.id = cne.configuracao_notificacao_id INNER JOIN email e ON e.id = cne.email_id WHERE cn.notificacao = $1 AND cn.tipo_notificacao = 'EMAIL' AND cn.cnpj IN ($2,$3) | client backend | |||||
| 1665815312 | documents | 545 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.251 | 21061 | 2025-12-09 06:58:12.649753-03 | 2025-12-09 07:07:29.643298-03 | 2025-12-09 07:07:29.643639-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2137 | 16402 | postgres | integracao-fluxo-pagamento-worker | 10.0.20.251 | 55979 | 2025-12-09 07:06:38.851262-03 | 2025-12-09 07:07:29.654975-03 | 2025-12-09 07:07:29.660369-03 | 2025-12-09 07:07:29.660625-03 | Client | ClientRead | idle in transaction | 1033481731 | -3623911024636025028 | select integracao0_.id as id1_2_0_, integracao0_.ativo as ativo2_2_0_, integracao0_.cnpj as cnpj3_2_0_, integracao0_.formato_documento as formato_4_2_0_, integracao0_.id_tipo_documento_remoto as id_tipo_5_2_0_, integracao0_.id_workflow as id_workf6_2_0_, integracao0_.senha as senha7_2_0_, integracao0_.tipo_documento as tipo_doc8_2_0_, integracao0_.usuario as usuario9_2_0_ from integ_flx_pag integracao0_ where integracao0_.id=$1 | client backend | |||
| 16450 | fiscal | 2141 | 16402 | postgres | econet-scrapper | 10.0.20.84 | 37805 | 2025-12-09 07:06:42.627646-03 | 2025-12-09 07:06:42.647197-03 | 2025-12-09 07:06:42.647232-03 | Client | ClientRead | idle | 4808936042342407727 | SET application_name = 'econet-scrapper' | client backend | |||||
| 16450 | fiscal | 2143 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.24.138 | 19571 | 2025-12-09 07:06:43.659528-03 | 2025-12-09 07:07:06.637189-03 | 2025-12-09 07:07:06.641534-03 | Client | ClientRead | idle | -6488867169811202377 | WITH numeracoes AS ( SELECT COUNT(CASE WHEN nu.utilizado = 'SIM' THEN 1 END) AS qtd_numeracao_utilizada, COUNT(CASE WHEN nu.utilizado = 'NAO' THEN 1 END) AS qtd_numeracao_disponivel FROM numeracao_utilizada nu JOIN controle_numeracao cn ON nu.controle_numeracao_id = cn.id WHERE cn.id = (SELECT MAX(id) FROM controle_numeracao) ), notas_emitidas AS ( SELECT to_char(data_rps, 'YYYY-MM') AS periodo, COUNT(1) AS quantidade_notas_emitidas FROM dados_emissao_nfse WHERE serie_rps = '01SN' GROUP BY to_char(data_rps, 'YYYY-MM') ORDER BY to_char(data_rps, 'YYYY-MM') DESC LIMIT 1 ) SELECT n.qtd_numeracao_utilizada QtdUtilizada, n.qtd_numeracao_disponivel QtdDisponivel, ne.periodo Periodo, ne.quantidade_notas_emitidas QtdNotasEmitidas FROM numeracoes n CROSS JOIN notas_emitidas ne | client backend | |||||
| 1665815312 | documents | 32694 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.253 | 12009 | 2025-12-09 06:55:30.757999-03 | 2025-12-09 07:07:29.322822-03 | 2025-12-09 07:07:29.322861-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 31623 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.84 | 58541 | 2025-12-09 06:48:15.994054-03 | 2025-12-09 07:07:29.366726-03 | 2025-12-09 07:07:29.366778-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2171 | 16402 | postgres | cte-lambda-aws | 10.0.20.46 | 45157 | 2025-12-09 07:06:58.901133-03 | 2025-12-09 07:06:59.256015-03 | 2025-12-09 07:06:59.258194-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 643 | 16402 | postgres | nfe-lambda-aws | 10.0.24.81 | 13811 | 2025-12-09 06:59:02.48549-03 | 2025-12-09 07:05:03.006649-03 | 2025-12-09 07:05:03.006691-03 | Client | ClientRead | idle | -5084201902893922806 | SELECT ce.conta_id FROM conta_empresa ce INNER JOIN empresa e ON ce.empresa_id = e.id INNER JOIN conta c on ce.conta_id = c.id WHERE e.cnpj IN ($1, $2) AND c.status = 'ATIVO' AND c.id <> 1 LIMIT 1 | client backend | |||||
| 1665815312 | documents | 1941 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.24.138 | 16279 | 2025-12-09 07:05:05.650921-03 | 2025-12-09 07:06:06.720961-03 | 2025-12-09 07:06:06.724655-03 | Client | ClientRead | idle | -8625620423702777529 | WITH status_lista AS ( SELECT unnest(ARRAY[ 'PENDENTE', 'CONCLUIDO', 'EM_PROCESSAMENTO', 'COM_ERRO', 'COM_ERRO_PERMANENTE' ]) AS status ), recorrente_lista AS ( SELECT unnest(ARRAY[true, false]) AS recorrente ), combinacoes AS ( SELECT s.status, r.recorrente FROM status_lista s CROSS JOIN recorrente_lista r ), contagens AS ( SELECT status, recorrente, COUNT(*) AS qtd FROM cfe_periodo_importacao_job WHERE data_fim <= now() AT TIME ZONE 'America/Sao_Paulo' AND status IS NOT NULL AND status IN ('PENDENTE','CONCLUIDO','EM_PROCESSAMENTO','COM_ERRO','COM_ERRO_PERMANENTE') GROUP BY status, recorrente ) SELECT COALESCE(ct.qtd, 0) AS "Qtd", c.status AS "Status", c.recorrente AS "Recorrente" FROM combinacoes c LEFT JOIN contagens ct ON c.status = ct.status AND c.recorrente = ct.recorrente ORDER BY c.status, c.recorrente; | client backend | |||||
| 16450 | fiscal | 1826 | 16402 | postgres | processador-linhas-sped-api | 10.0.24.253 | 61481 | 2025-12-09 07:04:24.09444-03 | 2025-12-09 07:07:29.578866-03 | 2025-12-09 07:07:29.578982-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2172 | 16402 | postgres | cte-lambda-aws | 10.0.20.84 | 33029 | 2025-12-09 07:06:59.066225-03 | 2025-12-09 07:06:59.355839-03 | 2025-12-09 07:06:59.358286-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 1942 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.20.251 | 43403 | 2025-12-09 07:05:05.7731-03 | 2025-12-09 07:05:13.300333-03 | 2025-12-09 07:05:13.368039-03 | Client | ClientRead | idle | 8947452279668419970 | select count(*), atr.code From document_analysis da inner join analysis_type_result atr on da.analysis_type_result_id = atr.id where da.status = 'ERROR' and periodo >= $1 group by atr.code order by 1 desc limit 100 | client backend | |||||
| 3333716331 | revizia | 1943 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.24.253 | 6451 | 2025-12-09 07:05:05.912305-03 | 2025-12-09 07:05:06.841836-03 | 2025-12-09 07:05:07.610706-03 | Client | ClientRead | idle | 957357389483338053 | select e.cnpj as CNpj, (dsc is null) as NovaEmpresa, dsc.data_inicio as DataInicio, dsc.data_fim as DataFim from certificado c left join lateral (select ce2.id, ce2.certificado_id, ce2.empresa_id, ce2.created_at from conta_empresa ce2 left join empresa e2 on (ce2.empresa_id = e2.id) where ce2.certificado_id = c.id and ce2.empresa_id = (select e3.id from empresa e3 inner join conta_empresa ce3 on e3.id = ce3.empresa_id inner join certificado c3 on ce3.certificado_id = c3.id where substring(e3.cnpj,1,8) = substring(e2.cnpj,1,8) and c3.data_expiracao > NOW() and e3.tipo_empresa = 'MATRIZ' limit 1) and c.data_expiracao > NOW() and e2.tipo_empresa = 'MATRIZ' order by created_at desc limit 1) ce on (true) left join empresa e on (ce.empresa_id = e.id) left join download_sped_controle_empresa dsc on (dsc.conta_empresa_id = ce.id) where ce.id is not null and e.tipo_empresa = 'MATRIZ' order by (dsc is null), dsc.data_inicio, ce.created_at desc | client backend | |||||
| 1665815312 | documents | 2173 | 16402 | postgres | cte-lambda-aws | 10.0.24.138 | 3641 | 2025-12-09 07:06:59.180772-03 | 2025-12-09 07:07:01.323259-03 | 2025-12-09 07:07:01.326161-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 22737 | 16402 | postgres | pgAdmin 4 - CONN:2514176 | 10.0.28.38 | 51542 | 2025-12-08 13:38:53.651434-03 | 2025-12-08 14:14:50.783467-03 | 2025-12-08 14:14:50.784145-03 | Client | ClientRead | idle | -3200963977824915130 | SELECT oid, pg_catalog.format_type(oid, NULL) AS typname FROM pg_catalog.pg_type WHERE oid = ANY($1) ORDER BY oid; | client backend | |||||
| 1665815312 | documents | 31313 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.185 | 15309 | 2025-12-09 06:45:40.569617-03 | 2025-12-09 07:07:28.616431-03 | 2025-12-09 07:07:28.61665-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 2222 | 16402 | postgres | core-api | 10.0.24.71 | 50291 | 2025-12-09 07:07:14.715543-03 | 2025-12-09 07:07:28.811398-03 | 2025-12-09 07:07:28.81156-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 2221 | 16402 | postgres | core-api | 10.0.24.185 | 55703 | 2025-12-09 07:07:14.713977-03 | 2025-12-09 07:07:27.545824-03 | 2025-12-09 07:07:27.545852-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 352 | 16402 | postgres | mensageria-api | 10.0.24.185 | 18671 | 2025-12-09 06:56:20.546857-03 | 2025-12-09 07:07:28.642808-03 | 2025-12-09 07:07:28.643798-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 2007 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.24.138 | 33957 | 2025-12-09 07:05:25.559086-03 | 2025-12-09 07:05:37.274544-03 | 2025-12-09 07:05:37.274624-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 3333716331 | revizia | 2223 | 16402 | postgres | core-api | 10.0.20.46 | 30107 | 2025-12-09 07:07:14.745784-03 | 2025-12-09 07:07:29.568486-03 | 2025-12-09 07:07:29.568573-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1841 | 16402 | postgres | integracao-fluxo-pagamento-worker | 10.0.20.84 | 48805 | 2025-12-09 07:04:32.141303-03 | 2025-12-09 07:06:35.219816-03 | 2025-12-09 07:06:35.219827-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 2224 | 16402 | postgres | mensageria-api | 10.0.24.81 | 57055 | 2025-12-09 07:07:15.916961-03 | 2025-12-09 07:07:28.643374-03 | 2025-12-09 07:07:28.644657-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 2008 | 16402 | postgres | document-api | 10.0.24.138 | 15627 | 2025-12-09 07:05:25.720994-03 | 2025-12-09 07:07:10.273895-03 | 2025-12-09 07:07:10.274021-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 27110 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.20.251 | 45551 | 2025-12-09 06:14:59.704273-03 | 2025-12-09 07:03:07.165886-03 | 2025-12-09 07:03:07.170301-03 | 2025-12-09 07:03:07.170313-03 | Client | ClientRead | idle in transaction | 1033480906 | -3645052014744462256 | SELECT bk.id FROM book_keeping bk WHERE bk.cnpj = $1 AND bk.period IN ($2) AND bk.type = $3 AND bk.status = 'READY' | client backend | |||
| 16450 | fiscal | 1955 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.253 | 59085 | 2025-12-09 07:05:08.212581-03 | 2025-12-09 07:06:07.061899-03 | 2025-12-09 07:06:07.061935-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 16450 | fiscal | 1846 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.20.84 | 8221 | 2025-12-09 07:04:34.245358-03 | 2025-12-09 07:05:08.296546-03 | 2025-12-09 07:05:08.296614-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 2225 | 16402 | postgres | mensageria-api | 10.0.20.84 | 50253 | 2025-12-09 07:07:15.918447-03 | 2025-12-09 07:07:28.643253-03 | 2025-12-09 07:07:28.64466-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1589 | 16402 | postgres | nfe-lambda-aws | 10.0.20.46 | 48643 | 2025-12-09 07:02:54.11723-03 | 2025-12-09 07:05:02.230551-03 | 2025-12-09 07:05:02.233208-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 1965 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.253 | 14941 | 2025-12-09 07:05:08.25176-03 | 2025-12-09 07:05:08.302163-03 | 2025-12-09 07:05:08.302184-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 667 | 16402 | postgres | nfe-lambda-aws | 10.0.24.71 | 24645 | 2025-12-09 06:59:09.089922-03 | 2025-12-09 07:05:11.536681-03 | 2025-12-09 07:05:11.538914-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 2226 | 16402 | postgres | certificado-api | 10.0.24.253 | 44317 | 2025-12-09 07:07:15.922412-03 | 2025-12-09 07:07:15.945552-03 | 2025-12-09 07:07:15.945571-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 2229 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.84 | 11653 | 2025-12-09 07:07:17.205764-03 | 2025-12-09 07:07:29.190578-03 | 2025-12-09 07:07:29.190677-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 31114 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.71 | 29495 | 2025-12-09 06:43:54.204107-03 | 2025-12-09 07:07:29.568177-03 | 2025-12-09 07:07:29.568225-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 30990 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.81 | 5497 | 2025-12-09 06:42:38.617814-03 | 2025-12-09 07:07:29.567842-03 | 2025-12-09 07:07:29.568008-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1591 | 16402 | postgres | nfe-lambda-aws | 10.0.20.84 | 60187 | 2025-12-09 07:02:54.380208-03 | 2025-12-09 07:07:09.906888-03 | 2025-12-09 07:07:09.90928-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 7679 | 16402 | postgres | pgAdmin 4 - DB:documents | 10.0.28.38 | 46312 | 2025-12-03 17:07:54.892087-03 | 2025-12-08 14:30:31.62867-03 | 2025-12-08 14:30:31.628756-03 | Client | ClientRead | idle | -4639381243785674786 | SELECT pg_cancel_backend(29385); | client backend | |||||
| 1665815312 | documents | 1592 | 16402 | postgres | nfe-lambda-aws | 10.0.20.84 | 61691 | 2025-12-09 07:02:54.436487-03 | 2025-12-09 07:05:04.632735-03 | 2025-12-09 07:05:04.635323-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1852 | 16402 | postgres | nfe-lambda-aws | 10.0.20.46 | 42273 | 2025-12-09 07:04:35.019362-03 | 2025-12-09 07:06:50.088243-03 | 2025-12-09 07:06:50.088285-03 | Client | ClientRead | idle | -5084201902893922806 | SELECT ce.conta_id FROM conta_empresa ce INNER JOIN empresa e ON ce.empresa_id = e.id INNER JOIN conta c on ce.conta_id = c.id WHERE e.cnpj IN ($1, $2) AND c.status = 'ATIVO' AND c.id <> 1 LIMIT 1 | client backend | |||||
| 3333716331 | revizia | 1593 | 16402 | postgres | nfe-lambda-aws | 10.0.24.71 | 34347 | 2025-12-09 07:02:54.617059-03 | 2025-12-09 07:06:31.788618-03 | 2025-12-09 07:06:31.788657-03 | Client | ClientRead | idle | -5084201902893922806 | SELECT ce.conta_id FROM conta_empresa ce INNER JOIN empresa e ON ce.empresa_id = e.id INNER JOIN conta c on ce.conta_id = c.id WHERE e.cnpj IN ($1, $2) AND c.status = 'ATIVO' AND c.id <> 1 LIMIT 1 | client backend | |||||
| 1665815312 | documents | 1675 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.84 | 48969 | 2025-12-09 07:03:31.188537-03 | 2025-12-09 07:07:27.203137-03 | 2025-12-09 07:07:27.203229-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 2240 | 16402 | postgres | mensageria-api | 10.0.24.71 | 34491 | 2025-12-09 07:07:28.63725-03 | 2025-12-09 07:07:29.576637-03 | 2025-12-09 07:07:29.576704-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 2241 | 16402 | postgres | econet-scrapper | 10.0.24.185 | 47239 | 2025-12-09 07:07:28.866538-03 | 2025-12-09 07:07:28.884584-03 | 2025-12-09 07:07:28.884595-03 | Client | ClientRead | idle | 4808936042342407727 | SET application_name = 'econet-scrapper' | client backend | |||||
| 1665815312 | documents | 1678 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.24.253 | 1961 | 2025-12-09 07:03:32.57062-03 | 2025-12-09 07:07:16.366776-03 | 2025-12-09 07:07:16.366833-03 | Client | ClientRead | idle | client backend | |||||||
| 16384 | rdsadmin | 16592 | 10 | rdsadmin | -1 | 2025-11-26 22:31:58.583641-03 | 2025-12-09 07:07:29.561446-03 | 2025-12-09 07:07:29.561499-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||||
| 16450 | fiscal | 1967 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.253 | 22777 | 2025-12-09 07:05:08.252262-03 | 2025-12-09 07:05:08.303323-03 | 2025-12-09 07:05:08.303346-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 3333716331 | revizia | 1680 | 16402 | postgres | dctfweb-importador-from-sqs | 10.0.24.185 | 18881 | 2025-12-09 07:03:34.091654-03 | 2025-12-09 07:07:06.6789-03 | 2025-12-09 07:07:06.678991-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1681 | 16402 | postgres | dctfweb-importador-from-sqs | 10.0.24.81 | 46871 | 2025-12-09 07:03:34.09198-03 | 2025-12-09 07:07:06.679454-03 | 2025-12-09 07:07:06.679528-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 1682 | 16402 | postgres | dctfweb-importador-from-sqs | 10.0.24.253 | 6905 | 2025-12-09 07:03:34.092263-03 | 2025-12-09 07:07:09.27153-03 | 2025-12-09 07:07:09.271552-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 387 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.46 | 11977 | 2025-12-09 06:56:39.861871-03 | 2025-12-09 07:07:29.323134-03 | 2025-12-09 07:07:29.323382-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 31454 | 16402 | postgres | cfe-job-download-documentos | 10.0.24.253 | 5993 | 2025-12-09 06:46:53.657902-03 | 2025-12-09 07:06:33.696263-03 | 2025-12-09 07:06:33.696324-03 | Client | ClientRead | idle | client backend | |||||||
| 16450 | fiscal | 1966 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.253 | 12107 | 2025-12-09 07:05:08.251989-03 | 2025-12-09 07:05:08.925511-03 | 2025-12-09 07:05:08.925525-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 3333716331 | revizia | 27166 | 16402 | postgres | pgAdmin 4 - CONN:9065625 | 10.0.28.38 | 46730 | 2025-12-03 16:14:25.227091-03 | 2025-12-03 16:14:50.836718-03 | 2025-12-03 16:14:50.83677-03 | Client | ClientRead | idle | -4364344397713342668 | commit transaction; | client backend | |||||
| 3333716331 | revizia | 398 | 16402 | postgres | certificado-api | 10.0.24.71 | 2035 | 2025-12-09 06:56:47.769329-03 | 2025-12-09 07:07:18.365464-03 | 2025-12-09 07:07:18.365515-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 31865 | 16402 | postgres | nfe-lambda-aws | 10.0.24.81 | 41333 | 2025-12-09 06:49:52.971805-03 | 2025-12-09 07:07:29.247557-03 | 2025-12-09 07:07:29.250241-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 731 | 16402 | postgres | mensageria-api | 10.0.24.185 | 45639 | 2025-12-09 06:59:49.945314-03 | 2025-12-09 07:07:15.91988-03 | 2025-12-09 07:07:15.920976-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1700 | 16402 | postgres | nfe-lambda-aws | 10.0.20.251 | 38313 | 2025-12-09 07:03:40.901539-03 | 2025-12-09 07:05:03.545827-03 | 2025-12-09 07:05:03.548331-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1701 | 16402 | postgres | nfe-lambda-aws | 10.0.24.81 | 3497 | 2025-12-09 07:03:41.155759-03 | 2025-12-09 07:05:05.125865-03 | 2025-12-09 07:05:05.128214-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1702 | 16402 | postgres | nfe-lambda-aws | 10.0.24.81 | 54843 | 2025-12-09 07:03:41.20824-03 | 2025-12-09 07:05:03.055706-03 | 2025-12-09 07:05:03.058549-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1703 | 16402 | postgres | nfe-lambda-aws | 10.0.24.71 | 29859 | 2025-12-09 07:03:41.918537-03 | 2025-12-09 07:05:03.157197-03 | 2025-12-09 07:05:03.158462-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1704 | 16402 | postgres | nfe-lambda-aws | 10.0.24.253 | 33077 | 2025-12-09 07:03:42.118443-03 | 2025-12-09 07:05:15.078732-03 | 2025-12-09 07:05:15.078778-03 | Client | ClientRead | idle | -6478377226548179738 | SELECT cn.cnpj, cn.notificacao, cn.valor, cn.intervalo, e.email FROM configuracao_notificacao cn INNER JOIN configuracao_notificacao_email cne ON cn.id = cne.configuracao_notificacao_id INNER JOIN email e ON e.id = cne.email_id WHERE cn.notificacao = $1 AND cn.tipo_notificacao = 'EMAIL' AND cn.cnpj IN ($2) | client backend | |||||
| 16450 | fiscal | 2022 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.24.81 | 19365 | 2025-12-09 07:05:37.341075-03 | 2025-12-09 07:07:26.957177-03 | 2025-12-09 07:07:26.957186-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 1964 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.71 | 57563 | 2025-12-09 07:05:08.25147-03 | 2025-12-09 07:07:17.348372-03 | 2025-12-09 07:07:17.348428-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 1708 | 16402 | postgres | nfe-lambda-aws | 10.0.24.185 | 21767 | 2025-12-09 07:03:42.539416-03 | 2025-12-09 07:05:01.648572-03 | 2025-12-09 07:05:01.651045-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 859 | 16402 | postgres | mensageria-api | 10.0.24.71 | 43443 | 2025-12-09 07:00:12.574258-03 | 2025-12-09 07:07:28.641782-03 | 2025-12-09 07:07:28.642886-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 2029 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.20.46 | 30333 | 2025-12-09 07:05:40.731743-03 | 2025-12-09 07:05:50.87244-03 | 2025-12-09 07:05:50.872502-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 1665815312 | documents | 792 | 16402 | postgres | mensageria-api | 10.0.24.71 | 48395 | 2025-12-09 07:00:04.896841-03 | 2025-12-09 07:07:28.641981-03 | 2025-12-09 07:07:28.643813-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 2032 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.20.84 | 32201 | 2025-12-09 07:05:43.676574-03 | 2025-12-09 07:05:43.699767-03 | 2025-12-09 07:05:43.701346-03 | Client | ClientRead | idle | -6488867169811202377 | select id, type, file_name from book_keeping where status in ('READING','READING_WITH_PRIORITY') order by created_at, updated_at | client backend | |||||
| 1665815312 | documents | 793 | 16402 | postgres | mensageria-api | 10.0.20.251 | 59549 | 2025-12-09 07:00:04.906413-03 | 2025-12-09 07:07:28.644767-03 | 2025-12-09 07:07:28.646555-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 16450 | fiscal | 1715 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.24.71 | 13531 | 2025-12-09 07:03:44.374521-03 | 2025-12-09 07:05:35.582277-03 | 2025-12-09 07:05:35.582287-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 16450 | fiscal | 2056 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.24.253 | 17549 | 2025-12-09 07:05:55.600584-03 | 2025-12-09 07:07:29.659625-03 | 2025-12-09 07:07:29.65964-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 1665815312 | documents | 31880 | 16402 | postgres | nfe-lambda-aws | 10.0.20.46 | 13463 | 2025-12-09 06:49:55.959758-03 | 2025-12-09 07:07:18.442546-03 | 2025-12-09 07:07:18.445281-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 3333716331 | revizia | 1972 | 16402 | postgres | go-sped-api | 10.0.20.84 | 23973 | 2025-12-09 07:05:08.274844-03 | 2025-12-09 07:07:13.422962-03 | 2025-12-09 07:07:13.432391-03 | Client | ClientRead | idle | -5339885417602169050 | select distinct e.cnpj from empresa e inner join conta_empresa ce on ce.empresa_id = e.id inner join conta c on c.id = ce.conta_id where substr(e.cnpj,1,8) = $1 and c.status in ('ATIVO', 'TRIAL') and c.deleted = false and e.deleted = false and ce.deleted = false | client backend | |||||
| 1665815312 | documents | 30539 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.46 | 6595 | 2025-12-09 06:39:35.968837-03 | 2025-12-09 07:07:09.323214-03 | 2025-12-09 07:07:09.323263-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 31952 | 16402 | postgres | cfe-job-queue-api | 10.0.20.84 | 9991 | 2025-12-09 06:50:29.517327-03 | 2025-12-09 07:07:29.568222-03 | 2025-12-09 07:07:29.568242-03 | Client | ClientRead | idle | client backend | |||||||
| 3333716331 | revizia | 1002 | 16402 | postgres | mensageria-api | 10.0.20.84 | 55841 | 2025-12-09 07:00:29.557489-03 | 2025-12-09 07:06:20.62769-03 | 2025-12-09 07:06:20.627798-03 | Client | ClientRead | idle | client backend | |||||||
| 1665815312 | documents | 1219 | 16402 | postgres | integracao-fluxo-pagamento-worker | 10.0.20.84 | 48371 | 2025-12-09 07:00:51.203903-03 | 2025-12-09 07:07:29.658699-03 | 2025-12-09 07:07:29.661676-03 | 2025-12-09 07:07:29.661693-03 | Client | ClientRead | idle in transaction | 1033481731 | -3623911024636025028 | select integracao0_.id as id1_2_0_, integracao0_.ativo as ativo2_2_0_, integracao0_.cnpj as cnpj3_2_0_, integracao0_.formato_documento as formato_4_2_0_, integracao0_.id_tipo_documento_remoto as id_tipo_5_2_0_, integracao0_.id_workflow as id_workf6_2_0_, integracao0_.senha as senha7_2_0_, integracao0_.tipo_documento as tipo_doc8_2_0_, integracao0_.usuario as usuario9_2_0_ from integ_flx_pag integracao0_ where integracao0_.id=$1 | client backend | |||
| 16450 | fiscal | 1375 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.71 | 56539 | 2025-12-09 07:01:06.980625-03 | 2025-12-09 07:05:08.254848-03 | 2025-12-09 07:05:08.254922-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 16450 | fiscal | 1200 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.24.138 | 27775 | 2025-12-09 07:00:49.371099-03 | 2025-12-09 07:05:08.872832-03 | 2025-12-09 07:05:08.872875-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | |||||
| 16450 | fiscal | 1458 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.20.251 | 62211 | 2025-12-09 07:01:42.419632-03 | 2025-12-09 07:05:40.741641-03 | 2025-12-09 07:05:40.741655-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||
| 5 | postgres | 1429 | 16402 | postgres | pgAdmin 4 - CONN:2187629 | 10.0.28.38 | 34292 | 2025-12-08 15:10:47.849807-03 | 2025-12-08 15:10:56.852028-03 | 2025-12-08 15:10:56.854831-03 | Client | ClientRead | idle | 7216056754469621365 | grant readonly to grafana | client backend | |||||
| 1338 | 2025-10-09 16:28:03.411906-03 | Activity | BgWriterMain | background writer | |||||||||||||||||
| 1426 | 2025-10-09 16:28:05.073321-03 | Activity | ArchiverMain | archiver | |||||||||||||||||
| 1337 | 2025-10-09 16:28:03.411735-03 | Timeout | CheckpointWriteDelay | checkpointer | |||||||||||||||||
| 1425 | 2025-10-09 16:28:05.073164-03 | Activity | WalWriterMain | walwriter |