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 | 896 | 10 | rdsadmin | pg_cron scheduler | 2025-06-01 22:10:25.23949-03 | Extension | Extension | 804233201376169930 | pg_cron launcher | |||||||||||
897 | 10 | rdsadmin | 2025-06-01 22:10:25.239681-03 | Activity | LogicalLauncherMain | logical replication launcher | |||||||||||||||
16450 | fiscal | 8205 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.217 | 42307 | 2025-08-20 09:17:02.00411-03 | 2025-08-20 09:17:02.038292-03 | 2025-08-20 09:17:02.038302-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
5 | postgres | 28825 | 3333668727 | rdsproxyadmin | 10.0.16.46 | 8083 | 2025-08-20 05:20:00.088931-03 | 2025-08-20 09:18:40.9292-03 | 2025-08-20 09:18:40.929291-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 | 28828 | 3333668727 | rdsproxyadmin | 10.0.16.225 | 23223 | 2025-08-20 05:20:00.182059-03 | 2025-08-20 09:18:40.514281-03 | 2025-08-20 09:18:40.514373-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 | 28829 | 3333668727 | rdsproxyadmin | 10.0.16.91 | 30095 | 2025-08-20 05:20:00.325848-03 | 2025-08-20 09:18:40.758898-03 | 2025-08-20 09:18:40.75897-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 | 1550 | 16402 | postgres | go-sped-api | 10.0.16.217 | 55041 | 2025-08-20 09:14:04.058796-03 | 2025-08-20 09:17:34.362458-03 | 2025-08-20 09:17:34.377168-03 | Client | ClientRead | idle | 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 | ||||||
5 | postgres | 28830 | 3333668727 | rdsproxyadmin | 10.0.20.107 | 20635 | 2025-08-20 05:20:00.344789-03 | 2025-08-20 09:18:40.218835-03 | 2025-08-20 09:18:40.21892-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 | 21304 | 3333668727 | rdsproxyadmin | 10.0.20.66 | 28245 | 2025-08-20 04:54:00.930344-03 | 2025-08-20 09:18:40.903327-03 | 2025-08-20 09:18:40.903413-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 | 16722 | 16402 | postgres | mensageria-api | 10.0.16.91 | 16463 | 2025-08-20 08:44:01.115353-03 | 2025-08-20 09:18:32.341912-03 | 2025-08-20 09:18:32.342125-03 | Client | ClientRead | idle | client backend | |||||||
5 | postgres | 28831 | 3333668727 | rdsproxyadmin | 10.0.16.217 | 14893 | 2025-08-20 05:20:00.356067-03 | 2025-08-20 09:18:40.383506-03 | 2025-08-20 09:18:40.383591-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 | 31055 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.20.107 | 22185 | 2025-08-20 09:09:05.607264-03 | 2025-08-20 09:18:40.608801-03 | 2025-08-20 09:18:40.61025-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
5 | postgres | 28836 | 3333668727 | rdsproxyadmin | 10.0.16.55 | 56009 | 2025-08-20 05:20:00.567165-03 | 2025-08-20 09:18:40.700556-03 | 2025-08-20 09:18:40.700634-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 | 28837 | 3333668727 | rdsproxyadmin | 10.0.16.232 | 64581 | 2025-08-20 05:20:00.789194-03 | 2025-08-20 09:18:40.52158-03 | 2025-08-20 09:18:40.52166-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 | 1019 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 25596 | 2025-08-20 09:13:00.711606-03 | 2025-08-20 09:17:44.167409-03 | 2025-08-20 09:17:44.167431-03 | Client | ClientRead | idle | -4518006279650829961 | ABORT TRANSACTION | client backend | |||||
16450 | fiscal | 6094 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 33642 | 2025-08-20 09:16:01.00217-03 | 2025-08-20 09:16:27.054381-03 | 2025-08-20 09:16:27.05441-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 2982 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.66 | 12439 | 2025-08-20 07:03:02.694032-03 | 2025-08-20 09:18:19.853842-03 | 2025-08-20 09:18:19.855307-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8398 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.20.107 | 59481 | 2025-08-20 09:18:05.790771-03 | 2025-08-20 09:18:06.99175-03 | 2025-08-20 09:18:06.995952-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 | |||||
3333716331 | revizia | 8399 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.91 | 29681 | 2025-08-20 09:18:05.930963-03 | 2025-08-20 09:18:07.46934-03 | 2025-08-20 09:18:20.722719-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 | 8208 | 16402 | postgres | nfe-lambda-aws | 10.0.16.55 | 22029 | 2025-08-20 09:17:02.389778-03 | 2025-08-20 09:18:33.483154-03 | 2025-08-20 09:18:33.485624-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 31053 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.232 | 21249 | 2025-08-20 09:09:05.197884-03 | 2025-08-20 09:16:32.962443-03 | 2025-08-20 09:16:32.962468-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 24034 | 16402 | postgres | core-api | 10.0.20.66 | 7025 | 2025-08-20 08:56:05.133393-03 | 2025-08-20 09:18:40.945226-03 | 2025-08-20 09:18:40.945269-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8431 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.16.91 | 27945 | 2025-08-20 09:18:13.104156-03 | 2025-08-20 09:18:40.960921-03 | 2025-08-20 09:18:40.960995-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 1023 | 16402 | postgres | cte-lambda-aws | 10.0.16.46 | 4279 | 2025-08-20 09:13:02.251755-03 | 2025-08-20 09:18:38.556649-03 | 2025-08-20 09:18:38.55898-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 645 | 16402 | postgres | integracao-fluxo-pagamento-worker | 10.0.16.232 | 22909 | 2025-08-20 09:12:08.070522-03 | 2025-08-20 09:18:38.615791-03 | 2025-08-20 09:18:38.615803-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 3673 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.91 | 8601 | 2025-08-20 09:15:10.05127-03 | 2025-08-20 09:18:27.881435-03 | 2025-08-20 09:18:28.301667-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'nfe' -> 'infNFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'nfe' -> 'infNFe' -> 'ide' ->> 'nnf' as int8) AS numeroNota FROM document d WHERE d.cnpj_issuer = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND ($4 = 'nao_filtrar_ie' OR d.data -> 'nfe' -> 'infNFe' -> 'emit' ->> 'ie' =$5) AND (d.data_entrada_saida IS NULL OR d.data_entrada_saida BETWEEN ($6) AND ($7)) AND d.type IN ('NFE_4_0', 'NFE_3_1') AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type and ds.status <> '2' ) ORDER BY d.data_emissao LIMIT $8 OFFSET $9 | client backend | ||||||
1665815312 | documents | 31613 | 16402 | postgres | integracao-fluxo-pagamento-worker | 10.0.16.225 | 16585 | 2025-08-20 09:10:01.869961-03 | 2025-08-20 09:18:41.028278-03 | 2025-08-20 09:18:41.029387-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
16450 | fiscal | 31060 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.28.38 | 43888 | 2025-08-20 09:09:06.036666-03 | 2025-08-20 09:09:07.31668-03 | 2025-08-20 09:09:07.316729-03 | Client | ClientRead | idle | SET application_name = 'PostgreSQL JDBC Driver' | client backend | ||||||
1665815312 | documents | 31160 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.232 | 58709 | 2025-08-20 09:09:19.968707-03 | 2025-08-20 09:18:22.902679-03 | 2025-08-20 09:18:22.90398-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8209 | 16402 | postgres | nfe-lambda-aws | 10.0.16.55 | 38597 | 2025-08-20 09:17:02.403481-03 | 2025-08-20 09:18:39.448429-03 | 2025-08-20 09:18:39.450833-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 12117 | 16402 | postgres | nfe-lambda-aws | 10.0.16.232 | 24749 | 2025-08-20 08:35:02.577845-03 | 2025-08-20 09:17:43.481932-03 | 2025-08-20 09:17:43.484423-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1601 | 16402 | postgres | nfe-lambda-aws | 10.0.16.55 | 47135 | 2025-08-20 09:14:10.182228-03 | 2025-08-20 09:17:02.420688-03 | 2025-08-20 09:17:02.422692-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1024 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.232 | 56459 | 2025-08-20 09:13:02.540252-03 | 2025-08-20 09:16:33.324764-03 | 2025-08-20 09:16:33.326081-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'nfe' -> 'infNFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'nfe' -> 'infNFe' -> 'ide' ->> 'nnf' as int8) AS numeroNota FROM document d WHERE d.cnpj_issuer = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND ($4 = 'nao_filtrar_ie' OR d.data -> 'nfe' -> 'infNFe' -> 'emit' ->> 'ie' =$5) AND (d.data_entrada_saida IS NULL OR d.data_entrada_saida BETWEEN ($6) AND ($7)) AND d.type IN ('NFE_4_0', 'NFE_3_1') AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type and ds.status <> '2' ) ORDER BY d.data_emissao LIMIT $8 OFFSET $9 | client backend | ||||||
5 | postgres | 18477 | 16402 | postgres | pgAdmin 4 - DB:postgres | 10.0.28.38 | 48994 | 2025-08-14 23:15:09.263878-03 | 2025-08-14 23:15:56.206301-03 | 2025-08-14 23:15:56.206759-03 | Client | ClientRead | idle | -5131504417054470966 | /*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 ORDER BY gid, database, owner | client backend | |||||
16450 | fiscal | 6097 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 33652 | 2025-08-20 09:16:01.151983-03 | 2025-08-20 09:16:05.008258-03 | 2025-08-20 09:16:05.008308-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 3680 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.232 | 35125 | 2025-08-20 09:15:12.860917-03 | 2025-08-20 09:18:39.566095-03 | 2025-08-20 09:18:39.566471-03 | 2025-08-20 09:18:39.566471-03 | Client | ClientWrite | active | 792182431 | SELECT bkl.index, bkl.native_line AS nativeLine, bkl.parent_line_id AS parentLineId FROM book_keeping_line bkl WHERE bkl.book_keeping_id = $1 AND bkl.identifier = $2 AND bkl.cnpj_raiz = SUBSTRING($3, 1, 8) | client backend | ||||
1665815312 | documents | 3699 | 16402 | postgres | nfse-lambda-aws | 10.0.16.46 | 37431 | 2025-08-20 09:15:16.014104-03 | 2025-08-20 09:17:13.250697-03 | 2025-08-20 09:17:13.253943-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 31097 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.28.38 | 43898 | 2025-08-20 09:09:10.32877-03 | 2025-08-20 09:09:11.620179-03 | 2025-08-20 09:09:11.620202-03 | Client | ClientRead | idle | SET application_name = 'PostgreSQL JDBC Driver' | client backend | ||||||
1665815312 | documents | 8212 | 16402 | postgres | nfse-lambda-aws | 10.0.16.91 | 29177 | 2025-08-20 09:17:04.753407-03 | 2025-08-20 09:17:13.682288-03 | 2025-08-20 09:17:13.684141-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 6098 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.16.217 | 51223 | 2025-08-20 09:16:01.237676-03 | 2025-08-20 09:16:36.84524-03 | 2025-08-20 09:16:36.845462-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 3700 | 16402 | postgres | fiscal-intelligence-api | 10.0.16.225 | 65203 | 2025-08-20 09:15:20.475612-03 | 2025-08-20 09:18:15.246403-03 | 2025-08-20 09:18:15.246426-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 1175 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.20.66 | 12219 | 2025-08-20 09:13:14.179583-03 | 2025-08-20 09:16:19.199613-03 | 2025-08-20 09:16:19.207144-03 | Client | ClientRead | idle | SELECT doc.key, cast(doc.data -> 'nfe' -> 'infNFe' -> 'total' -> 'icmsTot' ->> 'vicms' as numeric) as valor_icms, cast(doc.data -> 'nfe' -> 'infNFe' -> 'total' -> 'icmsTot' ->> 'vipi' as numeric) as valor_ipi FROM document doc WHERE doc.type in ('NFE_3_1', 'NFE_4_0') and doc.key in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) and data_emissao between $12 and $13 and cast(doc.data -> 'nfe' -> 'infNFe' -> 'total' -> 'icmsTot' ->> 'vicms' as numeric) > 0 | client backend | ||||||
16384 | rdsadmin | 2827 | 10 | rdsadmin | PostgreSQL JDBC Driver | -1 | 2025-08-06 22:36:26.318279-03 | 2025-08-20 09:18:38.31221-03 | 2025-08-20 09:18:38.312228-03 | Client | ClientRead | idle | SELECT value FROM rds_heartbeat2 | client backend | |||||||
16450 | fiscal | 31129 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.28.38 | 38886 | 2025-08-20 09:09:13.985644-03 | 2025-08-20 09:09:15.281422-03 | 2025-08-20 09:09:15.281434-03 | Client | ClientRead | idle | SET application_name = 'PostgreSQL JDBC Driver' | client backend | ||||||
1665815312 | documents | 27196 | 16402 | postgres | nfe-lambda-aws | 10.0.16.46 | 18689 | 2025-08-20 09:02:03.358514-03 | 2025-08-20 09:17:28.675282-03 | 2025-08-20 09:17:28.677497-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 787 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.55 | 3903 | 2025-08-20 09:12:24.177484-03 | 2025-08-20 09:18:19.767316-03 | 2025-08-20 09:18:19.768244-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8213 | 16402 | postgres | processador-linhas-sped-job | 10.0.16.55 | 37557 | 2025-08-20 09:17:05.127449-03 | 2025-08-20 09:17:05.634541-03 | 2025-08-20 09:17:05.634592-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 30310 | 16402 | postgres | mensageria-api | 10.0.16.232 | 7305 | 2025-08-20 09:08:21.929428-03 | 2025-08-20 09:17:05.234631-03 | 2025-08-20 09:17:05.234667-03 | Client | ClientRead | idle | client backend | |||||||
5 | postgres | 8914 | 16402 | postgres | pgAdmin 4 - CONN:9799658 | 10.0.28.38 | 43658 | 2025-08-19 14:09:01.738165-03 | 2025-08-20 07:48:07.234469-03 | 2025-08-20 07:48:07.234535-03 | Client | ClientRead | idle | SELECT oid, pg_catalog.format_type(oid, NULL) AS typname FROM pg_catalog.pg_type WHERE oid = ANY($1) ORDER BY oid; | client backend | ||||||
3333716331 | revizia | 20292 | 16402 | postgres | 10.0.28.38 | 43336 | 2025-08-19 22:25:37.452045-03 | 2025-08-20 09:18:37.148667-03 | 2025-08-20 09:18:37.148694-03 | Client | ClientRead | idle | 7088996947831101750 | ROLLBACK | client backend | ||||||
1665815312 | documents | 1602 | 16402 | postgres | nfe-lambda-aws | 10.0.20.107 | 13443 | 2025-08-20 09:14:10.200008-03 | 2025-08-20 09:18:33.416386-03 | 2025-08-20 09:18:33.419052-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 18079 | 16402 | postgres | mensageria-api | 10.0.16.55 | 17107 | 2025-08-20 08:47:10.662814-03 | 2025-08-20 09:18:40.665343-03 | 2025-08-20 09:18:40.666867-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16384 | rdsadmin | 3019 | 10 | rdsadmin | -1 | 2025-08-06 22:37:26.899544-03 | 2025-08-20 09:18:40.571572-03 | 2025-08-20 09:18:40.57167-03 | Client | ClientRead | idle | 3694949039461716331 | COMMIT | client backend | |||||||
3333716331 | revizia | 31615 | 16402 | postgres | core-api | 10.0.20.66 | 48455 | 2025-08-20 09:10:02.775984-03 | 2025-08-20 09:17:01.025786-03 | 2025-08-20 09:17:01.025855-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 22396 | 3305731552 | dev_rafael_carvalho | pgAdmin 4 - CONN:1616069 | 10.0.28.38 | 58972 | 2025-08-19 18:59:10.168301-03 | 2025-08-19 18:59:12.08893-03 | 2025-08-19 18:59:12.096196-03 | Client | ClientRead | idle | -6488867169811202377 | UPDATE public.document_analysis SET status = 'ERROR' WHERE status = 'PROCESSING' AND updated_at < NOW() - INTERVAL '1 hour'; | client backend | |||||
3333716331 | revizia | 8440 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 46022 | 2025-08-20 09:18:15.598734-03 | 2025-08-20 09:18:16.670253-03 | 2025-08-20 09:18:16.670432-03 | Client | ClientRead | idle | -4518006279650829961 | ABORT TRANSACTION | client backend | |||||
1665815312 | documents | 3929 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.232 | 61621 | 2025-08-20 09:15:34.832859-03 | 2025-08-20 09:18:39.590121-03 | 2025-08-20 09:18:39.590176-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 26849 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.225 | 32403 | 2025-08-20 09:01:06.686214-03 | 2025-08-20 09:18:22.889152-03 | 2025-08-20 09:18:22.890387-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1603 | 16402 | postgres | nfe-lambda-aws | 10.0.20.107 | 30377 | 2025-08-20 09:14:10.202498-03 | 2025-08-20 09:18:38.750732-03 | 2025-08-20 09:18:38.753543-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 1604 | 16402 | postgres | nfe-lambda-aws | 10.0.16.91 | 33699 | 2025-08-20 09:14:10.41794-03 | 2025-08-20 09:18:33.554926-03 | 2025-08-20 09:18:33.555513-03 | Client | ClientRead | idle | 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 | 8447 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.66 | 27707 | 2025-08-20 09:18:19.716081-03 | 2025-08-20 09:18:19.843492-03 | 2025-08-20 09:18:19.843525-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 4302 | 16402 | postgres | fiscal-intelligence-sped-api | 10.0.16.232 | 25991 | 2025-08-20 09:15:42.084067-03 | 2025-08-20 09:18:16.009092-03 | 2025-08-20 09:18:16.009136-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
3333716331 | revizia | 8448 | 16402 | postgres | rvz-sintegra-job | 10.0.16.55 | 36753 | 2025-08-20 09:18:20.455448-03 | 2025-08-20 09:18:40.973453-03 | 2025-08-20 09:18:40.973474-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 8215 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.20.107 | 49779 | 2025-08-20 09:17:05.610824-03 | 2025-08-20 09:18:07.116297-03 | 2025-08-20 09:18:07.404754-03 | Client | ClientRead | idle | 4519062602456696998 | select Count(*) as "Qtd", Status, recorrente as "Recorrente" from cfe_periodo_importacao_job where 1=1 and data_fim <= now() and status in ('PENDENTE','CONCLUIDO','EM_PROCESSAMENTO','COM_ERRO','COM_ERRO_PERMANENTE') --COM_ERRO_PERMANENTE,SEM_CERTIFICADO and status is not null group by status, recorrente | client backend | |||||
3333716331 | revizia | 7241 | 16402 | postgres | core-api | 10.0.16.91 | 55431 | 2025-08-20 08:26:10.789835-03 | 2025-08-20 09:18:40.26754-03 | 2025-08-20 09:18:40.267596-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 3714 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.46 | 19903 | 2025-08-20 09:15:26.335485-03 | 2025-08-20 09:18:40.586957-03 | 2025-08-20 09:18:40.586981-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 8449 | 16402 | postgres | rvz-sintegra-job | 10.0.20.66 | 15853 | 2025-08-20 09:18:20.455813-03 | 2025-08-20 09:18:40.97711-03 | 2025-08-20 09:18:40.977184-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
16450 | fiscal | 31157 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.28.38 | 38902 | 2025-08-20 09:09:19.464498-03 | 2025-08-20 09:09:20.721296-03 | 2025-08-20 09:09:20.721312-03 | Client | ClientRead | idle | SET application_name = 'PostgreSQL JDBC Driver' | client backend | ||||||
16450 | fiscal | 6099 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.16.225 | 57807 | 2025-08-20 09:16:01.273896-03 | 2025-08-20 09:17:47.830375-03 | 2025-08-20 09:17:47.830501-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1609 | 16402 | postgres | nfe-lambda-aws | 10.0.16.46 | 13759 | 2025-08-20 09:14:14.268127-03 | 2025-08-20 09:18:33.557739-03 | 2025-08-20 09:18:33.560091-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 8458 | 16402 | postgres | rvz-sintegra-job | 10.0.20.66 | 61071 | 2025-08-20 09:18:20.492223-03 | 2025-08-20 09:18:41.028515-03 | 2025-08-20 09:18:41.028628-03 | 2025-08-20 09:18:41.028628-03 | active | 792182431 | select dadossinte0_.id as id1_0_, dadossinte0_.cnpj as cnpj2_0_, dadossinte0_.data_importacao as data_imp3_0_, dadossinte0_.inscricao_estadual as inscrica4_0_, dadossinte0_.mensagem as mensagem5_0_, dadossinte0_.situacao_cnpj as situacao6_0_, dadossinte0_.situacao_inscricao_estadual as situacao7_0_, dadossinte0_.tipo_inscricao_estadual as tipo_ins8_0_, dadossinte0_.ultima as ultima9_0_ from dados_sintegra dadossinte0_ where dadossinte0_.cnpj=$1 | client backend | ||||||
16450 | fiscal | 8216 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.91 | 60743 | 2025-08-20 09:17:05.75125-03 | 2025-08-20 09:17:06.771771-03 | 2025-08-20 09:17:06.776473-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 | 3715 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.217 | 17307 | 2025-08-20 09:15:26.335802-03 | 2025-08-20 09:18:25.587397-03 | 2025-08-20 09:18:25.587422-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 25971 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.46 | 16121 | 2025-08-20 08:58:49.835401-03 | 2025-08-20 09:18:40.587173-03 | 2025-08-20 09:18:40.587215-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 8217 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.46 | 12945 | 2025-08-20 09:17:05.89454-03 | 2025-08-20 09:17:07.922892-03 | 2025-08-20 09:17:20.851286-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 | |||||
16450 | fiscal | 15994 | 16402 | postgres | pgAdmin 4 - CONN:7549893 | 10.0.28.38 | 53458 | 2025-08-19 18:42:28.407682-03 | 2025-08-19 21:23:36.591822-03 | 2025-08-20 07:48:02.876154-03 | Client | ClientRead | idle | 1558538948540241973 | CALL delete_empresa_limpeza(3) | client backend | |||||
1665815312 | documents | 6145 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.225 | 38493 | 2025-08-20 09:16:05.652364-03 | 2025-08-20 09:16:06.668868-03 | 2025-08-20 09:16:07.040473-03 | Client | ClientRead | idle | 4519062602456696998 | select Count(*) as "Qtd", Status, recorrente as "Recorrente" from cfe_periodo_importacao_job where 1=1 and data_fim <= now() and status in ('PENDENTE','CONCLUIDO','EM_PROCESSAMENTO','COM_ERRO','COM_ERRO_PERMANENTE') --COM_ERRO_PERMANENTE,SEM_CERTIFICADO and status is not null group by status, recorrente | client backend | |||||
1665815312 | documents | 24084 | 16402 | postgres | download-document-api | 10.0.16.46 | 49651 | 2025-08-20 08:56:12.320679-03 | 2025-08-20 09:18:00.392413-03 | 2025-08-20 09:18:00.392526-03 | Client | ClientRead | idle | -4199849316459484872 | DISCARD ALL; | client backend | |||||
1665815312 | documents | 8473 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.20.107 | 50357 | 2025-08-20 09:18:23.156838-03 | 2025-08-20 09:18:27.888965-03 | 2025-08-20 09:18:28.338036-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'nfe' -> 'infNFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'nfe' -> 'infNFe' -> 'ide' ->> 'nnf' as int8) AS numeroNota FROM document d WHERE d.cnpj_addressee = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND (d.data_entrada_saida IS NULL OR d.data_entrada_saida BETWEEN ($4) AND ($5)) AND d.type IN ('NFE_4_0', 'NFE_3_1') AND ($6 = 'nao_filtrar_ie' OR d.data -> 'nfe' -> 'infNFe' -> 'dest' ->> 'ie' =$7) AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type AND ds.status not in ('3','2') AND ( COALESCE( ( SELECT CASE WHEN ds.manifestation IS NOT NULL THEN ds.manifestation WHEN item.historico ->> 'eventCode' IN ('210200','210210','210220','210240') THEN item.historico ->> 'eventCode' WHEN regexp_replace(item.historico ->> 'description', '[^0-9]', '', 'gi') in ('210200','210210','210220','210240') THEN regexp_replace(item.historico ->> 'description', '[^0-9]', '', 'gi') END FROM jsonb_array_elements(ds.history) WITH ORDINALITY item(historico) WHERE item.historico ->> 'eventType' IN ('NFE_EVENT_MANIFESTATION','NFE_EVENT') ORDER BY item.historico ->> 'eventAt' DESC LIMIT 1 ) , ds.manifestation ) is null OR COALESCE( ( SELECT CASE WHEN ds.manifestation IS NOT NULL THEN ds.manifestation WHEN item.historico ->> 'eventCode' IN ('210200','210210','210220','210240') THEN item.historico ->> 'eventCode' WHEN regexp_replace(item.historico ->> 'description', '[^0-9]', '', 'gi') in ('210200','210210','210220','210240') THEN regexp_replace(item.historico ->> 'description', '[^0-9]', '', 'gi') END FROM jsonb_array_elements(ds.history) WITH ORDINALITY item(historico) WHERE item.historico ->> 'eventType' IN ('NFE_EVENT_MANIFESTATION','NFE_EVENT') ORDER BY item.historico ->> 'eventAt' DESC LIMIT 1 ) , ds.manifestation ) NOT IN ('210240','210220') ) ) AND EXISTS ( SELECT 1 FROM jsonb_array_elements(d.data -> 'nfe' -> 'infNFe' -> 'det') WITH ORDINALITY item(produto) WHERE substring(item.produto -> 'prod' ->> 'cfop', 1, 1) IN ('5','6','7') ) ORDER BY d.data_emissao LIMIT $8 OFFSET $9 | client backend | ||||||
1665815312 | documents | 27203 | 16402 | postgres | nfe-lambda-aws | 10.0.16.232 | 48373 | 2025-08-20 09:02:05.184655-03 | 2025-08-20 09:16:45.229534-03 | 2025-08-20 09:16:45.231635-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 31291 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.28.38 | 33216 | 2025-08-20 09:09:29.006096-03 | 2025-08-20 09:09:30.462983-03 | 2025-08-20 09:09:30.463002-03 | Client | ClientRead | idle | SET application_name = 'PostgreSQL JDBC Driver' | client backend | ||||||
1665815312 | documents | 1377 | 16402 | postgres | cfe-importar-sqs | 10.0.16.225 | 47723 | 2025-08-20 09:13:46.387608-03 | 2025-08-20 09:17:56.345361-03 | 2025-08-20 09:17:56.346856-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 3728 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.55 | 6377 | 2025-08-20 09:15:28.458614-03 | 2025-08-20 09:18:24.002367-03 | 2025-08-20 09:18:24.006629-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, d.data -> 'cte' -> 'infCte' -> 'ide' ->> 'cfop' as cfops, cast(d.data -> 'cte' -> 'infCte' -> 'ide' ->> 'nct' as int8) AS numeroNota FROM document d WHERE d.data_emissao BETWEEN ($1) AND ($2) AND d.type IN ('CTE','CTE_OS') AND ($3 = 'nao_filtrar_ie' OR d.data -> 'cte' -> 'infCte' -> 'dest' ->> 'ie' =$4) AND ( ( d.cnpj_cpf_tomador = $5 AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type AND ds.status <> '3' AND (ds.manifestation is null or ds.manifestation not in ('610110')) ) ) OR ( d.cnpj_issuer = $6 ) ) ORDER BY d.data_emissao LIMIT $7 OFFSET $8 | client backend | ||||||
1665815312 | documents | 27031 | 16402 | postgres | nfse-lambda-aws | 10.0.16.232 | 21689 | 2025-08-20 09:01:26.419613-03 | 2025-08-20 09:18:34.416983-03 | 2025-08-20 09:18:34.419722-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 27205 | 16402 | postgres | nfe-lambda-aws | 10.0.16.46 | 53007 | 2025-08-20 09:02:05.558803-03 | 2025-08-20 09:18:33.580421-03 | 2025-08-20 09:18:33.581012-03 | Client | ClientRead | idle | 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 | 8474 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.225 | 54607 | 2025-08-20 09:18:23.170247-03 | 2025-08-20 09:18:24.002682-03 | 2025-08-20 09:18:24.009359-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'infCFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'infCFe' -> 'ide' ->> 'ncFe' as int8) AS numeroNota FROM document d WHERE d.cnpj_issuer = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND ($4 = 'nao_filtrar_ie' OR d.data -> 'infCFe' -> 'emit' ->> 'ie' =$5) AND d.type LIKE 'CFE_0%' ORDER BY d.data_emissao LIMIT $6 OFFSET $7 | client backend | ||||||
3333716331 | revizia | 1390 | 16402 | postgres | rvz-sintegra-job | 10.0.20.66 | 31053 | 2025-08-20 09:13:46.813938-03 | 2025-08-20 09:18:40.962757-03 | 2025-08-20 09:18:40.962812-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
16450 | fiscal | 3733 | 16402 | postgres | fiscal-intelligence-api | 10.0.16.55 | 55035 | 2025-08-20 09:15:28.698899-03 | 2025-08-20 09:18:20.519783-03 | 2025-08-20 09:18:20.519802-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
3333716331 | revizia | 18486 | 16402 | postgres | pgAdmin 4 - CONN:8365702 | 10.0.28.38 | 49006 | 2025-08-14 23:15:11.693939-03 | 2025-08-14 23:15:17.31823-03 | 2025-08-14 23:15:17.318249-03 | Client | ClientRead | idle | 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 | 31230 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.232 | 31425 | 2025-08-20 09:09:23.554757-03 | 2025-08-20 09:18:24.831191-03 | 2025-08-20 09:18:24.831377-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 8511 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.91 | 25423 | 2025-08-20 09:18:27.833096-03 | 2025-08-20 09:18:27.949872-03 | 2025-08-20 09:18:27.953706-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, d.data -> 'cte' -> 'infCte' -> 'ide' ->> 'cfop' as cfops, cast(d.data -> 'cte' -> 'infCte' -> 'ide' ->> 'nct' as int8) AS numeroNota FROM document d WHERE d.data_emissao BETWEEN ($1) AND ($2) AND d.type IN ('CTE','CTE_OS') AND ($3 = 'nao_filtrar_ie' OR d.data -> 'cte' -> 'infCte' -> 'dest' ->> 'ie' =$4) AND ( ( d.cnpj_cpf_tomador = $5 AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type AND ds.status <> '3' AND (ds.manifestation is null or ds.manifestation not in ('610110')) ) ) OR ( d.cnpj_issuer = $6 ) ) ORDER BY d.data_emissao LIMIT $7 OFFSET $8 | client backend | ||||||
3333716331 | revizia | 1206 | 16402 | postgres | certificado-api | 10.0.20.107 | 41879 | 2025-08-20 09:13:23.739325-03 | 2025-08-20 09:17:29.494866-03 | 2025-08-20 09:17:29.494928-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 3022 | 16402 | postgres | mensageria-api | 10.0.20.66 | 26771 | 2025-08-20 08:19:38.209884-03 | 2025-08-20 09:16:53.783974-03 | 2025-08-20 09:16:53.783993-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 31629 | 16402 | postgres | nfse-lambda-aws | 10.0.20.66 | 3293 | 2025-08-20 09:10:04.533589-03 | 2025-08-20 09:18:25.333644-03 | 2025-08-20 09:18:25.337509-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8546 | 16402 | postgres | cte-lambda-aws | 10.0.20.107 | 60215 | 2025-08-20 09:18:30.163689-03 | 2025-08-20 09:18:30.407196-03 | 2025-08-20 09:18:30.408439-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1617 | 16402 | postgres | nfe-lambda-aws | 10.0.16.91 | 1591 | 2025-08-20 09:14:18.650064-03 | 2025-08-20 09:18:18.024022-03 | 2025-08-20 09:18:18.027051-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 31630 | 16402 | postgres | cte-lambda-aws | 10.0.16.91 | 23603 | 2025-08-20 09:10:04.810451-03 | 2025-08-20 09:18:38.521268-03 | 2025-08-20 09:18:38.523395-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 6154 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.55 | 59025 | 2025-08-20 09:16:05.910138-03 | 2025-08-20 09:16:07.137298-03 | 2025-08-20 09:16:21.082117-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 | 19774 | 16402 | postgres | nfe-lambda-aws | 10.0.16.91 | 3165 | 2025-08-20 08:51:15.156388-03 | 2025-08-20 09:17:42.332185-03 | 2025-08-20 09:17:42.334508-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 31317 | 16402 | postgres | nfe-lambda-aws | 10.0.20.107 | 39201 | 2025-08-20 09:09:34.923248-03 | 2025-08-20 09:17:14.243032-03 | 2025-08-20 09:17:14.245719-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1216 | 16402 | postgres | nfse-lambda-aws | 10.0.20.107 | 47689 | 2025-08-20 09:13:26.153707-03 | 2025-08-20 09:18:29.561057-03 | 2025-08-20 09:18:29.563781-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 3844 | 16402 | postgres | nfe-lambda-aws | 10.0.20.66 | 35237 | 2025-08-20 09:15:30.478998-03 | 2025-08-20 09:18:33.824938-03 | 2025-08-20 09:18:33.825528-03 | Client | ClientRead | idle | 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 | 8584 | 16402 | postgres | cte-lambda-aws | 10.0.20.66 | 58335 | 2025-08-20 09:18:36.826622-03 | 2025-08-20 09:18:37.160663-03 | 2025-08-20 09:18:37.162872-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1620 | 16402 | postgres | nfe-lambda-aws | 10.0.16.91 | 11787 | 2025-08-20 09:14:18.761888-03 | 2025-08-20 09:18:07.892561-03 | 2025-08-20 09:18:07.894769-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32230 | 16402 | postgres | nfe-lambda-aws | 10.0.16.232 | 40331 | 2025-08-20 09:11:04.221765-03 | 2025-08-20 09:17:32.786922-03 | 2025-08-20 09:17:32.789609-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8098 | 16402 | postgres | cfe-job-queue-api | 10.0.16.225 | 36227 | 2025-08-20 08:28:08.963585-03 | 2025-08-20 09:18:25.435278-03 | 2025-08-20 09:18:25.435363-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 8601 | 16402 | postgres | cte-lambda-aws | 10.0.16.91 | 14515 | 2025-08-20 09:18:38.389783-03 | 2025-08-20 09:18:41.009115-03 | 2025-08-20 09:18:41.009177-03 | 2025-08-20 09:18:41.009177-03 | active | 792182431 | select key from document where key = $1 and type = $2 and protocol = $3 and data_emissao between $4 and $5 limit 1 | client backend | ||||||
1665815312 | documents | 4173 | 16402 | postgres | document-api | 10.0.16.225 | 56547 | 2025-08-20 08:22:04.165332-03 | 2025-08-20 09:16:27.932672-03 | 2025-08-20 09:16:27.932762-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 29636 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.16.217 | 2895 | 2025-08-20 09:07:18.058637-03 | 2025-08-20 09:17:17.530811-03 | 2025-08-20 09:17:17.53087-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 6231 | 16402 | postgres | core-api | 10.0.20.107 | 22385 | 2025-08-20 09:16:07.783864-03 | 2025-08-20 09:18:33.576521-03 | 2025-08-20 09:18:33.576532-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 32395 | 16402 | postgres | core-api | 10.0.20.107 | 51941 | 2025-08-20 09:11:07.042417-03 | 2025-08-20 09:17:01.026349-03 | 2025-08-20 09:17:01.026406-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32494 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.55 | 2391 | 2025-08-20 09:11:10.202644-03 | 2025-08-20 09:18:40.467562-03 | 2025-08-20 09:18:40.467773-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 8237 | 16402 | postgres | nfse-lambda-aws | 10.0.16.55 | 18335 | 2025-08-20 09:17:13.086203-03 | 2025-08-20 09:18:39.571983-03 | 2025-08-20 09:18:39.574894-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 30508 | 16402 | postgres | download-document-api | 10.0.20.107 | 53825 | 2025-08-20 09:08:40.260523-03 | 2025-08-20 09:18:33.252249-03 | 2025-08-20 09:18:33.252335-03 | Client | ClientRead | idle | -4199849316459484872 | DISCARD ALL; | client backend | |||||
16450 | fiscal | 11185 | 3305731552 | dev_rafael_carvalho | pgAdmin 4 - CONN:8551615 | 10.0.28.38 | 57324 | 2025-08-20 07:29:17.958147-03 | 2025-08-20 07:32:41.753815-03 | 2025-08-20 07:32:41.753842-03 | Client | ClientRead | idle | 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 | 1622 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 44925 | 2025-08-20 09:14:19.429062-03 | 2025-08-20 09:16:48.606211-03 | 2025-08-20 09:16:48.609171-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 4500 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.46 | 16763 | 2025-08-20 09:15:43.589705-03 | 2025-08-20 09:16:06.589242-03 | 2025-08-20 09:16:06.592982-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 | |||||
3333716331 | revizia | 32356 | 16402 | postgres | core-api | 10.0.20.107 | 33885 | 2025-08-20 09:11:06.849808-03 | 2025-08-20 09:18:40.2501-03 | 2025-08-20 09:18:40.250332-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 16715 | 16402 | postgres | pgAdmin 4 - DB:revizia | 10.0.28.38 | 36316 | 2025-08-16 16:50:06.247273-03 | 2025-08-20 09:18:02.91434-03 | 2025-08-20 09:18:02.919365-03 | Client | ClientRead | idle | 4653323128169443287 | /*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 = 3333716331)) AS "Total", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'active' AND datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) AS "Active", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'idle' AND datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) 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 = 3333716331)) AS "Transactions", (SELECT sum(xact_commit) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) AS "Commits", (SELECT sum(xact_rollback) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) 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 = 3333716331)) AS "Inserts", (SELECT sum(tup_updated) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) AS "Updates", (SELECT sum(tup_deleted) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) 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 = 3333716331)) AS "Fetched", (SELECT sum(tup_returned) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) 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 = 3333716331)) AS "Reads", (SELECT sum(blks_hit) FROM pg_catalog.pg_stat_database WHERE datname = (SELECT datname FROM pg_catalog.pg_database WHERE oid = 3333716331)) AS "Hits" ) t | client backend | |||||
1665815312 | documents | 8604 | 16402 | postgres | cte-lambda-aws | 10.0.16.46 | 41317 | 2025-08-20 09:18:38.489542-03 | 2025-08-20 09:18:38.810963-03 | 2025-08-20 09:18:38.81329-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 27360 | 16402 | postgres | fiscal-intelligence-api | 10.0.16.225 | 44015 | 2025-08-20 09:02:16.368809-03 | 2025-08-20 09:18:14.863391-03 | 2025-08-20 09:18:14.863422-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1226 | 16402 | postgres | mensageria-api | 10.0.20.107 | 55139 | 2025-08-20 09:13:30.772369-03 | 2025-08-20 09:18:20.447404-03 | 2025-08-20 09:18:20.447442-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 1227 | 16402 | postgres | download-document-api | 10.0.16.232 | 3495 | 2025-08-20 09:13:31.757633-03 | 2025-08-20 09:18:37.568721-03 | 2025-08-20 09:18:37.568798-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 20029 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.225 | 60373 | 2025-08-20 08:51:50.451686-03 | 2025-08-20 09:18:40.731467-03 | 2025-08-20 09:18:40.733174-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 30511 | 16402 | postgres | download-document-api | 10.0.16.225 | 10539 | 2025-08-20 09:08:40.32224-03 | 2025-08-20 09:18:31.448993-03 | 2025-08-20 09:18:31.449103-03 | Client | ClientRead | idle | -4199849316459484872 | DISCARD ALL; | client backend | |||||
16450 | fiscal | 16043 | 16402 | postgres | pgAdmin 4 - CONN:3816679 | 10.0.28.38 | 36188 | 2025-08-19 18:42:42.079285-03 | 2025-08-19 21:23:35.241255-03 | 2025-08-20 07:48:01.061957-03 | Client | ClientRead | idle | -2828850295681666026 | CALL delete_empresa_limpeza(2) | client backend | |||||
3333716331 | revizia | 8614 | 16402 | postgres | rvz-sintegra-job | 10.0.16.55 | 34259 | 2025-08-20 09:18:40.936345-03 | 2025-08-20 09:18:40.984183-03 | 2025-08-20 09:18:40.984646-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
3333716331 | revizia | 8613 | 16402 | postgres | rvz-sintegra-job | 10.0.16.55 | 4403 | 2025-08-20 09:18:40.936044-03 | 2025-08-20 09:18:40.986431-03 | 2025-08-20 09:18:40.986488-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 1629 | 16402 | postgres | nfe-lambda-aws | 10.0.20.66 | 3137 | 2025-08-20 09:14:21.941433-03 | 2025-08-20 09:17:31.991441-03 | 2025-08-20 09:17:31.994294-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 6232 | 16402 | postgres | document-api | 10.0.16.55 | 60869 | 2025-08-20 09:16:07.802745-03 | 2025-08-20 09:18:17.183072-03 | 2025-08-20 09:18:17.183107-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 28394 | 16402 | postgres | core-api | 10.0.16.55 | 44565 | 2025-08-20 09:04:35.464356-03 | 2025-08-20 09:18:33.578811-03 | 2025-08-20 09:18:33.578937-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 871 | 16402 | postgres | rvz-sintegra-job | 10.0.16.46 | 7391 | 2025-08-20 09:12:40.083074-03 | 2025-08-20 09:17:07.542439-03 | 2025-08-20 09:17:07.542512-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 6202 | 16402 | postgres | go-sped-api | 10.0.16.46 | 23907 | 2025-08-20 09:16:06.99836-03 | 2025-08-20 09:16:07.022147-03 | 2025-08-20 09:16:07.036941-03 | Client | ClientRead | idle | 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 | 6463 | 16402 | postgres | document-api | 10.0.16.232 | 49743 | 2025-08-20 09:16:13.204794-03 | 2025-08-20 09:18:33.899818-03 | 2025-08-20 09:18:33.907615-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 6539 | 16402 | postgres | document-api | 10.0.16.232 | 7001 | 2025-08-20 09:16:13.789071-03 | 2025-08-20 09:16:28.244264-03 | 2025-08-20 09:16:28.244299-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32497 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.66 | 58003 | 2025-08-20 09:11:12.099872-03 | 2025-08-20 09:18:40.966787-03 | 2025-08-20 09:18:40.966824-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 28447 | 16402 | postgres | cfe-importar-sqs | 10.0.20.107 | 22987 | 2025-08-20 09:04:48.00743-03 | 2025-08-20 09:16:45.184643-03 | 2025-08-20 09:16:45.184771-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 8631 | 7802 | 16402 | postgres | rvz-sintegra-job | 2025-08-20 09:18:41.025204-03 | 2025-08-20 09:18:41.024046-03 | 2025-08-20 09:18:41.024292-03 | 2025-08-20 09:18:41.026707-03 | active | 792182431 | select dadossinte0_.id as id1_0_, dadossinte0_.cnpj as cnpj2_0_, dadossinte0_.data_importacao as data_imp3_0_, dadossinte0_.inscricao_estadual as inscrica4_0_, dadossinte0_.mensagem as mensagem5_0_, dadossinte0_.situacao_cnpj as situacao6_0_, dadossinte0_.situacao_inscricao_estadual as situacao7_0_, dadossinte0_.tipo_inscricao_estadual as tipo_ins8_0_, dadossinte0_.ultima as ultima9_0_ from dados_sintegra dadossinte0_ where dadossinte0_.cnpj=$1 | parallel worker | |||||||
1665815312 | documents | 6444 | 16402 | postgres | document-api | 10.0.16.46 | 56857 | 2025-08-20 09:16:12.96979-03 | 2025-08-20 09:16:27.716739-03 | 2025-08-20 09:16:27.716772-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 16239 | 16402 | postgres | nfe-lambda-aws | 10.0.16.225 | 4803 | 2025-08-20 08:43:14.309561-03 | 2025-08-20 09:17:35.546668-03 | 2025-08-20 09:17:35.548924-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 8632 | 7802 | 16402 | postgres | rvz-sintegra-job | 2025-08-20 09:18:41.025554-03 | 2025-08-20 09:18:41.024046-03 | 2025-08-20 09:18:41.024292-03 | 2025-08-20 09:18:41.026896-03 | active | 792182431 | select dadossinte0_.id as id1_0_, dadossinte0_.cnpj as cnpj2_0_, dadossinte0_.data_importacao as data_imp3_0_, dadossinte0_.inscricao_estadual as inscrica4_0_, dadossinte0_.mensagem as mensagem5_0_, dadossinte0_.situacao_cnpj as situacao6_0_, dadossinte0_.situacao_inscricao_estadual as situacao7_0_, dadossinte0_.tipo_inscricao_estadual as tipo_ins8_0_, dadossinte0_.ultima as ultima9_0_ from dados_sintegra dadossinte0_ where dadossinte0_.cnpj=$1 | parallel worker | |||||||
1665815312 | documents | 27383 | 16402 | postgres | document-api | 10.0.16.46 | 30033 | 2025-08-20 09:02:18.963988-03 | 2025-08-20 09:16:27.937458-03 | 2025-08-20 09:16:27.937491-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 22388 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 41281 | 2025-08-20 08:54:15.2612-03 | 2025-08-20 09:17:02.728954-03 | 2025-08-20 09:17:02.729504-03 | Client | ClientRead | idle | 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 | 8238 | 16402 | postgres | nfse-lambda-aws | 10.0.16.217 | 12319 | 2025-08-20 09:17:13.10691-03 | 2025-08-20 09:18:31.034584-03 | 2025-08-20 09:18:31.03696-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 28108 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 40931 | 2025-08-20 09:03:33.065836-03 | 2025-08-20 09:16:48.604625-03 | 2025-08-20 09:16:48.606961-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 23776 | 16402 | postgres | pgAdmin 4 - CONN:1700456 | 10.0.28.38 | 56018 | 2025-08-19 15:43:53.625876-03 | 2025-08-19 15:48:11.087938-03 | 2025-08-19 15:48:11.087997-03 | Client | ClientRead | idle | -4364344397713342668 | commit transaction; | client backend | |||||
1665815312 | documents | 27384 | 16402 | postgres | document-api | 10.0.16.232 | 64695 | 2025-08-20 09:02:18.966847-03 | 2025-08-20 09:16:28.004568-03 | 2025-08-20 09:16:28.004632-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 29658 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.107 | 17001 | 2025-08-20 09:07:24.55271-03 | 2025-08-20 09:16:20.60537-03 | 2025-08-20 09:16:20.606668-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 27385 | 16402 | postgres | core-api | 10.0.16.91 | 42661 | 2025-08-20 09:02:19.03848-03 | 2025-08-20 09:17:08.701015-03 | 2025-08-20 09:17:08.701125-03 | Client | ClientRead | idle | -4199849316459484872 | DISCARD ALL; | client backend | |||||
16450 | fiscal | 16061 | 16402 | postgres | pgAdmin 4 - CONN:3816679 | 10.0.28.38 | 45664 | 2025-08-19 18:42:46.056255-03 | 2025-08-19 21:23:31.857188-03 | 2025-08-20 07:47:59.242134-03 | Client | ClientRead | idle | -7402057875979027787 | CALL delete_empresa_limpeza(1) | client backend | |||||
1665815312 | documents | 29196 | 16402 | postgres | mensageria-api | 10.0.16.225 | 26953 | 2025-08-20 09:06:11.829993-03 | 2025-08-20 09:18:40.685062-03 | 2025-08-20 09:18:40.685218-03 | 2025-08-20 09:18:40.685219-03 | IO | DataFileRead | active | 792182431 | select solicitaca0_.id as id1_11_, solicitaca0_.cnpj as cnpj2_11_, solicitaca0_.codigo_ibge as codigo_i3_11_, solicitaca0_.data_conclusao as data_con4_11_, solicitaca0_.data_final as data_fin5_11_, solicitaca0_.data_inicial as data_ini6_11_, solicitaca0_.data_solicitacao as data_sol7_11_, solicitaca0_.inscricao_municipal as inscrica8_11_, solicitaca0_.numero_final as numero_f9_11_, solicitaca0_.numero_inicial as numero_10_11_, solicitaca0_.quantidade_documentos as quantid11_11_, solicitaca0_.stacktrace as stacktr12_11_, solicitaca0_.status as status13_11_, solicitaca0_.tipo as tipo14_11_, solicitaca0_.ultimo_numero as ultimo_15_11_ from solicitacao_download_nfse solicitaca0_ where solicitaca0_.cnpj=$1 and solicitaca0_.codigo_ibge=$2 and solicitaca0_.tipo=$3 and (solicitaca0_.status in ($4 , $5)) order by solicitaca0_.data_final desc limit $6 | client backend | ||||
1665815312 | documents | 6441 | 16402 | postgres | document-api | 10.0.16.225 | 37699 | 2025-08-20 09:16:12.966963-03 | 2025-08-20 09:18:17.189478-03 | 2025-08-20 09:18:17.189529-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8239 | 16402 | postgres | nfse-lambda-aws | 10.0.16.46 | 50991 | 2025-08-20 09:17:13.17328-03 | 2025-08-20 09:18:32.545161-03 | 2025-08-20 09:18:32.548369-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 6518 | 16402 | postgres | document-api | 10.0.16.55 | 6625 | 2025-08-20 09:16:13.73843-03 | 2025-08-20 09:18:17.209973-03 | 2025-08-20 09:18:17.209989-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 28689 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.55 | 57793 | 2025-08-20 09:05:09.82107-03 | 2025-08-20 09:18:31.228166-03 | 2025-08-20 09:18:31.228259-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 28450 | 16402 | postgres | cfe-importar-sqs | 10.0.16.91 | 1711 | 2025-08-20 09:04:48.076823-03 | 2025-08-20 09:17:55.185532-03 | 2025-08-20 09:17:55.185563-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 30536 | 16402 | postgres | download-document-api | 10.0.20.107 | 3335 | 2025-08-20 09:08:40.806884-03 | 2025-08-20 09:18:20.524467-03 | 2025-08-20 09:18:20.524627-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 1351 | 16402 | postgres | processador-linhas-sped-api | 10.0.16.91 | 26715 | 2025-08-20 09:13:39.898218-03 | 2025-08-20 09:18:40.65622-03 | 2025-08-20 09:18:40.656281-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 6551 | 16402 | postgres | document-api | 10.0.16.46 | 16289 | 2025-08-20 09:16:13.819085-03 | 2025-08-20 09:18:33.645779-03 | 2025-08-20 09:18:33.645851-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 3757 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.46 | 52461 | 2025-08-20 09:15:29.528262-03 | 2025-08-20 09:17:29.571434-03 | 2025-08-20 09:17:29.571453-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 27387 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.232 | 48201 | 2025-08-20 09:02:19.370379-03 | 2025-08-20 09:18:22.858454-03 | 2025-08-20 09:18:22.859674-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
5 | postgres | 21980 | 3305731552 | dev_rafael_carvalho | pgAdmin 4 - DB:postgres | 10.0.28.38 | 34170 | 2025-08-19 18:58:23.351203-03 | 2025-08-20 07:29:06.492323-03 | 2025-08-20 07:29:06.495577-03 | Client | ClientRead | idle | -3012509240442274851 | /*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) AS "Total", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'active') AS "Active", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'idle') 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) AS "Transactions", (SELECT sum(xact_commit) FROM pg_catalog.pg_stat_database) AS "Commits", (SELECT sum(xact_rollback) FROM pg_catalog.pg_stat_database) 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) AS "Inserts", (SELECT sum(tup_updated) FROM pg_catalog.pg_stat_database) AS "Updates", (SELECT sum(tup_deleted) FROM pg_catalog.pg_stat_database) 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) AS "Fetched", (SELECT sum(tup_returned) FROM pg_catalog.pg_stat_database) 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) AS "Reads", (SELECT sum(blks_hit) FROM pg_catalog.pg_stat_database) AS "Hits" ) t | client backend | |||||
16450 | fiscal | 22003 | 3305731552 | dev_rafael_carvalho | pgAdmin 4 - DB:fiscal | 10.0.28.38 | 33516 | 2025-08-19 18:58:25.1666-03 | 2025-08-20 09:17:43.973091-03 | 2025-08-20 09:17:43.978139-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 | |||||
1665815312 | documents | 29197 | 16402 | postgres | mensageria-api | 10.0.20.107 | 28395 | 2025-08-20 09:06:11.830273-03 | 2025-08-20 09:16:02.200397-03 | 2025-08-20 09:16:02.201367-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 6527 | 16402 | postgres | document-api | 10.0.20.66 | 6285 | 2025-08-20 09:16:13.769518-03 | 2025-08-20 09:16:28.005395-03 | 2025-08-20 09:16:28.005421-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 28695 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.217 | 50127 | 2025-08-20 09:05:10.573211-03 | 2025-08-20 09:18:40.831295-03 | 2025-08-20 09:18:40.831374-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 26601 | 16402 | postgres | pgAdmin 4 - CONN:8202398 | 10.0.28.38 | 48198 | 2025-08-15 06:43:24.036689-03 | 2025-08-15 06:45:26.126218-03 | 2025-08-15 06:45:26.126249-03 | Client | ClientRead | idle | SELECT oid, pg_catalog.format_type(oid, NULL) AS typname FROM pg_catalog.pg_type WHERE oid = ANY($1) ORDER BY oid; | client backend | ||||||
3333716331 | revizia | 28173 | 16402 | postgres | rvz-sintegra-job | 10.0.16.217 | 33407 | 2025-08-20 09:03:42.959757-03 | 2025-08-20 09:17:32.315985-03 | 2025-08-20 09:17:32.316011-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 8240 | 16402 | postgres | nfe-lambda-aws | 10.0.20.107 | 5161 | 2025-08-20 09:17:14.204204-03 | 2025-08-20 09:17:43.200982-03 | 2025-08-20 09:17:43.203575-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 7243 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.46 | 22549 | 2025-08-20 09:16:19.173762-03 | 2025-08-20 09:18:27.851314-03 | 2025-08-20 09:18:28.070742-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'infCFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'infCFe' -> 'ide' ->> 'ncFe' as int8) AS numeroNota FROM document d WHERE d.cnpj_issuer = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND ($4 = 'nao_filtrar_ie' OR d.data -> 'infCFe' -> 'emit' ->> 'ie' =$5) AND d.type LIKE 'CFE_0%' ORDER BY d.data_emissao LIMIT $6 OFFSET $7 | client backend | ||||||
16450 | fiscal | 956 | 16402 | postgres | pgAdmin 4 - CONN:3228673 | 10.0.28.38 | 42752 | 2025-08-19 17:51:57.679838-03 | 2025-08-19 21:23:38.10587-03 | 2025-08-20 07:48:05.07522-03 | Client | ClientRead | idle | 5416383927653580847 | CALL delete_empresa_limpeza(4) | client backend | |||||
1665815312 | documents | 20043 | 16402 | postgres | document-api | 10.0.16.46 | 46573 | 2025-08-20 08:51:51.175005-03 | 2025-08-20 09:18:17.191138-03 | 2025-08-20 09:18:17.191358-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 872 | 16402 | postgres | rvz-sintegra-job | 10.0.20.107 | 31693 | 2025-08-20 09:12:40.08355-03 | 2025-08-20 09:17:01.78342-03 | 2025-08-20 09:17:01.784534-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 28717 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.91 | 28169 | 2025-08-20 09:05:11.391672-03 | 2025-08-20 09:18:36.801807-03 | 2025-08-20 09:18:36.801822-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 4187 | 16402 | postgres | fiscal-intelligence-sped-api | 10.0.16.232 | 44673 | 2025-08-20 09:15:41.2669-03 | 2025-08-20 09:17:02.910646-03 | 2025-08-20 09:17:02.912261-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 32510 | 16402 | postgres | core-api | 10.0.20.66 | 33297 | 2025-08-20 09:11:13.773729-03 | 2025-08-20 09:18:40.222921-03 | 2025-08-20 09:18:40.222933-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 31701 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.107 | 52615 | 2025-08-20 09:10:11.65452-03 | 2025-08-20 09:16:26.690469-03 | 2025-08-20 09:16:26.690516-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 27128 | 16402 | postgres | nfe-lambda-aws | 10.0.16.55 | 64381 | 2025-08-20 09:01:45.378884-03 | 2025-08-20 09:17:02.532061-03 | 2025-08-20 09:17:02.535078-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32519 | 16402 | postgres | cte-lambda-aws | 10.0.16.55 | 47261 | 2025-08-20 09:11:14.156856-03 | 2025-08-20 09:18:37.946615-03 | 2025-08-20 09:18:37.948963-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 7276 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42708 | 2025-08-20 09:16:19.529035-03 | 2025-08-20 09:16:24.959801-03 | 2025-08-20 09:16:24.959826-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 7287 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42712 | 2025-08-20 09:16:19.712689-03 | 2025-08-20 09:16:24.326101-03 | 2025-08-20 09:16:24.326129-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 3570 | 16402 | postgres | pgAdmin 4 - DB:fiscal | 10.0.28.38 | 34114 | 2025-08-19 10:32:47.541758-03 | 2025-08-20 07:48:05.074329-03 | 2025-08-20 07:48:05.074506-03 | Client | ClientRead | idle | -6488867169811202377 | SELECT pg_cancel_backend(956); | client backend | |||||
1665815312 | documents | 8241 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 31552 | 2025-08-20 09:17:14.839837-03 | 2025-08-20 09:17:22.370614-03 | 2025-08-20 09:17:22.371845-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 8261 | 16402 | postgres | nfe-lambda-aws | 10.0.16.46 | 39949 | 2025-08-20 09:17:28.645963-03 | 2025-08-20 09:18:40.37317-03 | 2025-08-20 09:18:40.375542-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 29702 | 16402 | postgres | esocial-totalizador-fgts-empregador-importar-from-sqs | 10.0.16.232 | 39093 | 2025-08-20 09:07:28.889795-03 | 2025-08-20 09:18:29.256647-03 | 2025-08-20 09:18:29.256666-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 24456 | 16402 | postgres | document-api | 10.0.16.225 | 29017 | 2025-08-20 08:56:45.626502-03 | 2025-08-20 09:16:28.011469-03 | 2025-08-20 09:16:28.011502-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 26365 | 16402 | postgres | rvz-sintegra-job | 10.0.16.91 | 53903 | 2025-08-20 09:00:21.185189-03 | 2025-08-20 09:17:02.317203-03 | 2025-08-20 09:17:02.317353-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 8305 | 16402 | postgres | nfe-lambda-aws | 10.0.16.225 | 34701 | 2025-08-20 09:17:35.512997-03 | 2025-08-20 09:18:40.314209-03 | 2025-08-20 09:18:40.316608-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 7294 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42714 | 2025-08-20 09:16:19.798549-03 | 2025-08-20 09:16:19.879728-03 | 2025-08-20 09:16:19.879763-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 18257 | 16402 | postgres | mensageria-api | 10.0.16.217 | 5209 | 2025-08-20 08:47:32.568259-03 | 2025-08-20 09:18:31.801861-03 | 2025-08-20 09:18:31.801934-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 6570 | 16402 | postgres | document-api | 10.0.16.46 | 3711 | 2025-08-20 09:16:13.861465-03 | 2025-08-20 09:18:17.21361-03 | 2025-08-20 09:18:17.213661-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 7359 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.20.107 | 53823 | 2025-08-20 09:16:20.607322-03 | 2025-08-20 09:18:26.128241-03 | 2025-08-20 09:18:26.129348-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 924 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.225 | 19309 | 2025-08-20 09:12:43.583523-03 | 2025-08-20 09:16:43.582209-03 | 2025-08-20 09:16:43.582483-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 | |||||
16450 | fiscal | 8248 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.16.225 | 44331 | 2025-08-20 09:17:22.552998-03 | 2025-08-20 09:17:56.051032-03 | 2025-08-20 09:17:56.051092-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 31714 | 16402 | postgres | cte-lambda-aws | 10.0.20.66 | 57525 | 2025-08-20 09:10:13.317613-03 | 2025-08-20 09:18:40.942429-03 | 2025-08-20 09:18:41.027013-03 | 2025-08-20 09:18:41.027088-03 | Client | ClientRead | idle in transaction | 792186818 | 8244427782796884113 | UPDATE document_status SET status = $1, type = $2, nsu = $3, cnpj_issuer = $4, protocol = $5, manifestation = $6, canceled_at = $7, cce_events = $8, cce_updated_at = $9, history = CAST($10 AS JSONB) WHERE key = $11 | client backend | |||
16450 | fiscal | 7395 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42724 | 2025-08-20 09:16:21.068919-03 | 2025-08-20 09:16:21.340643-03 | 2025-08-20 09:16:21.340676-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 7431 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42746 | 2025-08-20 09:16:21.571723-03 | 2025-08-20 09:16:21.670429-03 | 2025-08-20 09:16:21.670468-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 7386 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42722 | 2025-08-20 09:16:20.969081-03 | 2025-08-20 09:16:21.052061-03 | 2025-08-20 09:16:21.052096-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 8310 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.225 | 9667 | 2025-08-20 09:17:36.229469-03 | 2025-08-20 09:18:26.227832-03 | 2025-08-20 09:18:26.22802-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 7440 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42756 | 2025-08-20 09:16:21.689963-03 | 2025-08-20 09:16:21.908545-03 | 2025-08-20 09:16:21.90857-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 29262 | 16402 | postgres | ecac-darf-job-download-documentos | 10.0.16.232 | 10217 | 2025-08-20 09:06:25.27998-03 | 2025-08-20 09:18:37.417875-03 | 2025-08-20 09:18:37.417911-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 30569 | 16402 | postgres | document-api | 10.0.16.46 | 46455 | 2025-08-20 09:08:41.444149-03 | 2025-08-20 09:16:42.399253-03 | 2025-08-20 09:16:42.401765-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8331 | 16402 | postgres | lambda-go-revizia-metrics | 10.0.16.55 | 10231 | 2025-08-20 09:17:43.586453-03 | 2025-08-20 09:17:43.611081-03 | 2025-08-20 09:17:43.612581-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 | |||||
16450 | fiscal | 27529 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.16.46 | 20867 | 2025-08-20 09:02:31.680148-03 | 2025-08-20 09:16:37.134942-03 | 2025-08-20 09:16:37.135164-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
16450 | fiscal | 7412 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42732 | 2025-08-20 09:16:21.363994-03 | 2025-08-20 09:16:21.549473-03 | 2025-08-20 09:16:21.549501-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 1526 | 16402 | postgres | cfe-importar-sqs | 10.0.20.107 | 58581 | 2025-08-20 09:13:55.971701-03 | 2025-08-20 09:18:01.826759-03 | 2025-08-20 09:18:01.827935-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 28229 | 16402 | postgres | cfe-importar-sqs | 10.0.16.46 | 12831 | 2025-08-20 09:03:50.058135-03 | 2025-08-20 09:17:55.185101-03 | 2025-08-20 09:17:55.185154-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 5831 | 16402 | postgres | mensageria-api | 10.0.16.55 | 48685 | 2025-08-20 09:15:55.419502-03 | 2025-08-20 09:16:02.321015-03 | 2025-08-20 09:16:02.321096-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 31744 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.91 | 12987 | 2025-08-20 09:10:16.671194-03 | 2025-08-20 09:18:25.089494-03 | 2025-08-20 09:18:25.090454-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1648 | 16402 | postgres | nfe-lambda-aws | 10.0.16.55 | 3183 | 2025-08-20 09:14:26.846786-03 | 2025-08-20 09:17:02.532577-03 | 2025-08-20 09:17:02.535106-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 7459 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42758 | 2025-08-20 09:16:21.922281-03 | 2025-08-20 09:16:22.008288-03 | 2025-08-20 09:16:22.008315-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 7470 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42760 | 2025-08-20 09:16:22.025265-03 | 2025-08-20 09:16:23.965968-03 | 2025-08-20 09:16:23.965998-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
5 | postgres | 3723 | 16402 | postgres | pgAdmin 4 - DB:postgres | 10.0.28.38 | 38754 | 2025-08-19 10:33:57.773971-03 | 2025-08-20 09:18:36.314569-03 | 2025-08-20 09:18:36.318672-03 | Client | ClientRead | idle | -3012509240442274851 | /*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) AS "Total", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'active') AS "Active", (SELECT count(*) FROM pg_catalog.pg_stat_activity WHERE state = 'idle') 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) AS "Transactions", (SELECT sum(xact_commit) FROM pg_catalog.pg_stat_database) AS "Commits", (SELECT sum(xact_rollback) FROM pg_catalog.pg_stat_database) 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) AS "Inserts", (SELECT sum(tup_updated) FROM pg_catalog.pg_stat_database) AS "Updates", (SELECT sum(tup_deleted) FROM pg_catalog.pg_stat_database) 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) AS "Fetched", (SELECT sum(tup_returned) FROM pg_catalog.pg_stat_database) 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) AS "Reads", (SELECT sum(blks_hit) FROM pg_catalog.pg_stat_database) AS "Hits" ) t | client backend | |||||
16450 | fiscal | 18540 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.55 | 3337 | 2025-08-20 08:48:39.313687-03 | 2025-08-20 09:18:40.68932-03 | 2025-08-20 09:18:40.690742-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 31805 | 16402 | postgres | nfe-lambda-aws | 10.0.20.66 | 20395 | 2025-08-20 09:10:19.658105-03 | 2025-08-20 09:17:44.167096-03 | 2025-08-20 09:17:44.16946-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1699 | 16402 | postgres | nfe-lambda-aws | 10.0.20.66 | 37501 | 2025-08-20 09:14:29.861511-03 | 2025-08-20 09:16:58.78449-03 | 2025-08-20 09:16:58.787282-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 1704 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.91 | 26403 | 2025-08-20 09:14:32.671841-03 | 2025-08-20 09:16:31.035965-03 | 2025-08-20 09:16:31.037036-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 1730 | 16402 | postgres | nfe-lambda-aws | 10.0.16.225 | 43547 | 2025-08-20 09:14:36.938816-03 | 2025-08-20 09:17:35.546929-03 | 2025-08-20 09:17:35.549953-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8335 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.20.66 | 8583 | 2025-08-20 09:17:46.741986-03 | 2025-08-20 09:18:03.818488-03 | 2025-08-20 09:18:03.818572-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 1527 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.20.107 | 57451 | 2025-08-20 09:13:57.864128-03 | 2025-08-20 09:16:21.720309-03 | 2025-08-20 09:18:41.024858-03 | 2025-08-20 09:18:41.028302-03 | Client | ClientRead | idle in transaction | 792182431 | 792182431 | -7619687138498640239 | insert into document_analysis_issues (created_at, created_by, deleted, updated_at, updated_by, analysis_type_result_id, document_analysis_id, result_param) values ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING * | client backend | ||
16450 | fiscal | 7489 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42772 | 2025-08-20 09:16:22.273061-03 | 2025-08-20 09:16:24.742381-03 | 2025-08-20 09:16:24.742409-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
3333716331 | revizia | 8355 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 39256 | 2025-08-20 09:17:49.325282-03 | 2025-08-20 09:17:50.392821-03 | 2025-08-20 09:17:50.392998-03 | Client | ClientRead | idle | -4518006279650829961 | ABORT TRANSACTION | client backend | |||||
16450 | fiscal | 8356 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 39260 | 2025-08-20 09:17:49.333183-03 | 2025-08-20 09:18:16.038601-03 | 2025-08-20 09:18:16.0387-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
16450 | fiscal | 1738 | 16402 | postgres | fiscal-intelligence-api | 10.0.16.91 | 65517 | 2025-08-20 09:14:37.769485-03 | 2025-08-20 09:18:15.159207-03 | 2025-08-20 09:18:15.159273-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 1723 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 30059 | 2025-08-20 09:14:36.131031-03 | 2025-08-20 09:16:48.597138-03 | 2025-08-20 09:16:48.599449-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 955 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.217 | 16109 | 2025-08-20 09:12:46.329138-03 | 2025-08-20 09:18:40.567282-03 | 2025-08-20 09:18:40.759173-03 | 2025-08-20 09:18:40.76072-03 | Client | ClientRead | idle in transaction | 792186814 | 792182431 | -7619687138498640239 | insert into document_analysis_issues (created_at, created_by, deleted, updated_at, updated_by, analysis_type_result_id, document_analysis_id, result_param) values ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING * | client backend | ||
1665815312 | documents | 27172 | 16402 | postgres | cte-lambda-aws | 10.0.20.107 | 36389 | 2025-08-20 09:01:52.666665-03 | 2025-08-20 09:18:30.378199-03 | 2025-08-20 09:18:30.379621-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 29268 | 16402 | postgres | document-api | 10.0.16.55 | 21565 | 2025-08-20 09:06:28.296377-03 | 2025-08-20 09:16:28.000044-03 | 2025-08-20 09:16:28.000075-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8376 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.20.107 | 17799 | 2025-08-20 09:17:56.05714-03 | 2025-08-20 09:18:41.028354-03 | 2025-08-20 09:18:41.028359-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 28840 | 16402 | postgres | ecac-situacao-fiscal-api | 10.0.20.107 | 49435 | 2025-08-20 09:05:21.229298-03 | 2025-08-20 09:18:33.202862-03 | 2025-08-20 09:18:33.202948-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 5333 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.91 | 46921 | 2025-08-20 08:23:49.553524-03 | 2025-08-20 09:18:38.588198-03 | 2025-08-20 09:18:38.588301-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 1722 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 17173 | 2025-08-20 09:14:36.130033-03 | 2025-08-20 09:18:32.972589-03 | 2025-08-20 09:18:32.975064-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 31902 | 16402 | postgres | cfe-importar-sqs | 10.0.20.107 | 34343 | 2025-08-20 09:10:39.576146-03 | 2025-08-20 09:17:55.18905-03 | 2025-08-20 09:17:55.189132-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 7498 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42788 | 2025-08-20 09:16:22.42308-03 | 2025-08-20 09:16:24.641707-03 | 2025-08-20 09:16:24.641839-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 29704 | 16402 | postgres | esocial-totalizador-fgts-empregador-importar-from-sqs | 10.0.20.66 | 47885 | 2025-08-20 09:07:28.890314-03 | 2025-08-20 09:18:28.777804-03 | 2025-08-20 09:18:28.777874-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 7515 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 42790 | 2025-08-20 09:16:22.622104-03 | 2025-08-20 09:16:23.866867-03 | 2025-08-20 09:16:23.866894-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 1733 | 16402 | postgres | nfe-lambda-aws | 10.0.16.225 | 30523 | 2025-08-20 09:14:36.973295-03 | 2025-08-20 09:18:33.544823-03 | 2025-08-20 09:18:33.54704-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 29703 | 16402 | postgres | esocial-totalizador-fgts-empregador-importar-from-sqs | 10.0.20.66 | 31071 | 2025-08-20 09:07:28.890048-03 | 2025-08-20 09:18:28.777968-03 | 2025-08-20 09:18:28.778022-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 7718 | 16402 | postgres | document-api | 10.0.16.232 | 55037 | 2025-08-20 09:16:25.259667-03 | 2025-08-20 09:16:27.960339-03 | 2025-08-20 09:16:27.960593-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 3639 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.16.225 | 48993 | 2025-08-20 09:14:55.079415-03 | 2025-08-20 09:17:02.128941-03 | 2025-08-20 09:18:24.084309-03 | 2025-08-20 09:18:24.08431-03 | active | 792184897 | 792182431 | -6488867169811202377 | SELECT cnpj, cnpjRegistro, periodo, registro, codigoContaContabil, '' AS codigoItem, '' AS descricaoItem, valor, pisRestituir, cofinsRestituir, possivelCreditoTotal, taxaSelicAcumulada, possivelCreditoTotalAtualizado FROM ( SELECT bklF550.id, bklF010.cnpj, bklF010.cnpjRegistro, bklF010.periodo, 'F550' AS registro, bkl0500.json_line ->> 'codigo_conta_contabil' AS codigoContaContabil, CAST(bklF550.json_line ->> 'valor_total_receita' AS NUMERIC) AS valor, CAST(bklF550.json_line ->> 'valor_pis' AS NUMERIC) AS pisRestituir, CAST(bklF550.json_line ->> 'valor_cofins' AS NUMERIC) AS cofinsRestituir, CAST(bklF550.json_line ->> 'valor_pis' AS NUMERIC) + CAST(bklF550.json_line ->> 'valor_cofins' AS NUMERIC) AS possivelCreditoTotal, CAST(taxa_selic_acumulada(bklF010.periodo) AS NUMERIC) AS taxaSelicAcumulada, ((CAST(bklF550.json_line ->> 'valor_pis' AS NUMERIC) + CAST(bklF550.json_line ->> 'valor_cofins' AS NUMERIC)) * CAST(taxa_selic_acumulada(bklF010.periodo) / 100 AS NUMERIC)) + (CAST(bklF550.json_line ->> 'valor_pis' AS NUMERIC) + CAST(bklF550.json_line ->> 'valor_cofins' AS NUMERIC)) AS possivelCreditoTotalAtualizado, ( ( UPPER(bkl0500.json_line ->> 'nome_conta') LIKE '%REC%' AND UPPER(bkl0500.json_line ->> 'nome_conta') LIKE '%ALUGU%' ) OR ( UPPER(bklF550.json_line ->> 'informacao_complementar') LIKE '%REC%' AND UPPER(bklF550.json_line ->> 'informacao_complementar') LIKE '%ALUGU%' ) ) AS descricaoPresente FROM ( SELECT bk.id, bk.cnpj, bk.period AS periodo, bklF010.json_line ->> 'cnpj' AS cnpjRegistro, bklF010.index AS indiceInicialF010, ( SELECT bklint.index FROM book_keeping_line bklint WHERE bklint.identifier = 'F010' AND bklF010.book_keeping_id = bklint.book_keeping_id AND bklint.index > bklF010.index ORDER BY bklint.index LIMIT 1 ) AS indiceFinalF010 FROM book_keeping bk INNER JOIN book_keeping_line bklF010 ON bk.id = bklF010.book_keeping_id WHERE bklF010.book_keeping_id IN ($1) AND bk.cnpj = $2 AND bklF010.identifier = 'F010' ) bklF010 INNER JOIN book_keeping_line bklF550 ON bklF010.id = bklF550.book_keeping_id AND bklF550.cnpj_raiz = SUBSTRING($3, 1, 8) LEFT OUTER JOIN book_keeping_line bkl0500 ON bklF010.id = bkl0500.book_keeping_id AND bkl0500.cnpj_raiz = SUBSTRING($4, 1, 8) AND bkl0500.identifier = '0500' AND bkl0500.json_line ->> 'codigo_conta_contabil' = bklF550.json_line ->> 'codigo_conta_analitica_contabil' AND bkl0500.json_line ->> 'codigo_natureza_conta' = '04' AND bkl0500.json_line ->> 'codigo_conta_contabil_referenciada' IN ('3.11.01.05.01.19','3.01.01.01.01.08') WHERE bklF550.identifier = 'F550' AND bklF550.index > bklF010.indiceInicialF010 AND (bklF010.indiceFinalF010 IS NULL OR bklF550.index < bklF010.indiceFinalF010) AND CAST(bklF550.json_line ->> 'valor_base_calculo_pis' AS NUMERIC) <> 0 AND CAST(bklF550.json_line ->> 'valor_pis' AS NUMERIC) <> 0 AND CAST(bklF550.json_line ->> 'valor_base_calculo_cofins' AS NUMERIC) <> 0 AND CAST(bklF550.json_line ->> 'valor_cofins' AS NUMERIC) <> 0 ) resultado WHERE descricaoPresente = true ORDER BY id limit $5 | client backend | ||||
3333716331 | revizia | 7802 | 16402 | postgres | rvz-sintegra-job | 10.0.16.225 | 5211 | 2025-08-20 09:16:26.562391-03 | 2025-08-20 09:18:41.024046-03 | 2025-08-20 09:18:41.024292-03 | 2025-08-20 09:18:41.024293-03 | active | 792182431 | select dadossinte0_.id as id1_0_, dadossinte0_.cnpj as cnpj2_0_, dadossinte0_.data_importacao as data_imp3_0_, dadossinte0_.inscricao_estadual as inscrica4_0_, dadossinte0_.mensagem as mensagem5_0_, dadossinte0_.situacao_cnpj as situacao6_0_, dadossinte0_.situacao_inscricao_estadual as situacao7_0_, dadossinte0_.tipo_inscricao_estadual as tipo_ins8_0_, dadossinte0_.ultima as ultima9_0_ from dados_sintegra dadossinte0_ where dadossinte0_.cnpj=$1 | client backend | ||||||
1665815312 | documents | 1906 | 16402 | postgres | document-api | 10.0.16.46 | 56633 | 2025-08-20 09:14:46.127005-03 | 2025-08-20 09:18:33.603829-03 | 2025-08-20 09:18:33.603896-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 8377 | 16402 | postgres | go-sped-api | 10.0.20.66 | 47653 | 2025-08-20 09:17:57.438704-03 | 2025-08-20 09:17:57.465942-03 | 2025-08-20 09:17:57.480604-03 | Client | ClientRead | idle | 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 | 30743 | 16402 | postgres | nfe-lambda-aws | 10.0.16.225 | 18169 | 2025-08-20 09:08:42.870287-03 | 2025-08-20 09:17:35.535241-03 | 2025-08-20 09:17:35.53755-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 29761 | 16402 | postgres | nfe-lambda-aws | 10.0.16.46 | 6881 | 2025-08-20 09:07:34.027726-03 | 2025-08-20 09:18:39.346952-03 | 2025-08-20 09:18:39.349829-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 7826 | 16402 | postgres | cfe-job-download-documentos | 10.0.20.107 | 32009 | 2025-08-20 09:16:26.692108-03 | 2025-08-20 09:18:40.590333-03 | 2025-08-20 09:18:40.590457-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 23923 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 23279 | 2025-08-20 08:55:49.767794-03 | 2025-08-20 09:16:48.605451-03 | 2025-08-20 09:16:48.608093-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 2292 | 16402 | postgres | cfe-importar-sqs | 10.0.16.217 | 24449 | 2025-08-20 09:14:46.925865-03 | 2025-08-20 09:17:54.773015-03 | 2025-08-20 09:17:54.774805-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 28231 | 16402 | postgres | cfe-importar-sqs | 10.0.16.55 | 27241 | 2025-08-20 09:03:50.291871-03 | 2025-08-20 09:16:51.171267-03 | 2025-08-20 09:16:51.171356-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 23991 | 16402 | postgres | nfe-lambda-aws | 10.0.16.55 | 2655 | 2025-08-20 08:55:56.602757-03 | 2025-08-20 09:18:33.476382-03 | 2025-08-20 09:18:33.478708-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 28233 | 16402 | postgres | cfe-importar-sqs | 10.0.16.55 | 35317 | 2025-08-20 09:03:50.292506-03 | 2025-08-20 09:17:52.180614-03 | 2025-08-20 09:17:52.180711-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 2085 | 16402 | postgres | document-api | 10.0.16.232 | 37443 | 2025-08-20 09:14:46.486592-03 | 2025-08-20 09:18:33.602105-03 | 2025-08-20 09:18:33.602175-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32552 | 16402 | postgres | cte-lambda-aws | 10.0.16.232 | 36131 | 2025-08-20 09:11:21.62972-03 | 2025-08-20 09:18:39.552634-03 | 2025-08-20 09:18:39.553825-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 29023 | 16402 | postgres | nfe-lambda-aws | 10.0.20.66 | 18781 | 2025-08-20 09:05:45.783539-03 | 2025-08-20 09:18:37.591953-03 | 2025-08-20 09:18:37.595075-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8378 | 16402 | postgres | fiscal-intelligence-sped-job | 10.0.16.232 | 4007 | 2025-08-20 09:17:57.899177-03 | 2025-08-20 09:18:38.42106-03 | 2025-08-20 09:18:38.421133-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 29025 | 16402 | postgres | nfe-lambda-aws | 10.0.16.91 | 58279 | 2025-08-20 09:05:46.088713-03 | 2025-08-20 09:18:39.589519-03 | 2025-08-20 09:18:39.591554-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32574 | 16402 | postgres | cfe-job-download-documentos-recorrentes | 10.0.16.217 | 27035 | 2025-08-20 09:11:24.191029-03 | 2025-08-20 09:18:22.90999-03 | 2025-08-20 09:18:22.91145-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 3156 | 16402 | postgres | nfe-lambda-aws | 10.0.20.107 | 12775 | 2025-08-20 09:14:48.743192-03 | 2025-08-20 09:16:02.265367-03 | 2025-08-20 09:16:02.265584-03 | Client | ClientRead | idle | 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 | 32012 | 16402 | postgres | document-api | 10.0.16.225 | 57601 | 2025-08-20 09:10:50.98523-03 | 2025-08-20 09:18:41.028707-03 | 2025-08-20 09:18:41.029571-03 | 2025-08-20 09:18:41.029571-03 | active | 792182431 | select * from pg_stat_activity | client backend | ||||||
1665815312 | documents | 7910 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.232 | 45125 | 2025-08-20 09:16:33.277241-03 | 2025-08-20 09:18:24.020464-03 | 2025-08-20 09:18:24.02758-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'nfe' -> 'infNFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'nfe' -> 'infNFe' -> 'ide' ->> 'nnf' as int8) AS numeroNota FROM document d WHERE d.cnpj_issuer = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND ($4 = 'nao_filtrar_ie' OR d.data -> 'nfe' -> 'infNFe' -> 'emit' ->> 'ie' =$5) AND (d.data_entrada_saida IS NULL OR d.data_entrada_saida BETWEEN ($6) AND ($7)) AND d.type IN ('NFE_4_0', 'NFE_3_1') AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type and ds.status <> '2' ) ORDER BY d.data_emissao LIMIT $8 OFFSET $9 | client backend | ||||||
1665815312 | documents | 32695 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.217 | 35501 | 2025-08-20 09:11:30.366295-03 | 2025-08-20 09:16:12.314079-03 | 2025-08-20 09:16:12.31889-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, d.data -> 'cte' -> 'infCte' -> 'ide' ->> 'cfop' as cfops, cast(d.data -> 'cte' -> 'infCte' -> 'ide' ->> 'nct' as int8) AS numeroNota FROM document d WHERE d.data_emissao BETWEEN ($1) AND ($2) AND d.type IN ('CTE','CTE_OS') AND ($3 = 'nao_filtrar_ie' OR d.data -> 'cte' -> 'infCte' -> 'dest' ->> 'ie' =$4) AND ( ( d.cnpj_cpf_tomador = $5 AND EXISTS ( SELECT 1 FROM document_status ds WHERE d.key = ds.key AND d.cnpj_issuer = ds.cnpj_issuer AND d.protocol = ds.protocol AND d.nsu = ds.nsu AND d.type = ds.type AND ds.status <> '3' AND (ds.manifestation is null or ds.manifestation not in ('610110')) ) ) OR ( d.cnpj_issuer = $6 ) ) ORDER BY d.data_emissao LIMIT $7 OFFSET $8 | client backend | ||||||
1665815312 | documents | 28973 | 16402 | postgres | cte-lambda-aws | 10.0.16.225 | 56519 | 2025-08-20 09:05:35.727873-03 | 2025-08-20 09:18:41.017822-03 | 2025-08-20 09:18:41.018364-03 | 2025-08-20 09:18:41.018364-03 | active | 792182431 | select key from document where key = $1 and type = $2 and protocol = $3 and data_emissao between $4 and $5 limit 1 | client backend | ||||||
1665815312 | documents | 32011 | 16402 | postgres | document-api | 10.0.16.55 | 53829 | 2025-08-20 09:10:50.984689-03 | 2025-08-20 09:16:27.979863-03 | 2025-08-20 09:16:27.979922-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 7813 | 16402 | postgres | rvz-sintegra-job | 10.0.20.66 | 32851 | 2025-08-20 09:16:26.593514-03 | 2025-08-20 09:18:40.959805-03 | 2025-08-20 09:18:40.959822-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 7717 | 16402 | postgres | document-api | 10.0.20.107 | 34067 | 2025-08-20 09:16:25.256716-03 | 2025-08-20 09:18:33.607964-03 | 2025-08-20 09:18:33.608016-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 32745 | 16402 | postgres | cte-lambda-aws | 10.0.16.217 | 20277 | 2025-08-20 09:11:41.089392-03 | 2025-08-20 09:18:38.056714-03 | 2025-08-20 09:18:38.059247-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 7913 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.225 | 48651 | 2025-08-20 09:16:33.67915-03 | 2025-08-20 09:16:41.692698-03 | 2025-08-20 09:18:41.024057-03 | 2025-08-20 09:18:41.02762-03 | Client | ClientRead | idle in transaction | 792183724 | 792182431 | -7619687138498640239 | insert into document_analysis_issues (created_at, created_by, deleted, updated_at, updated_by, analysis_type_result_id, document_analysis_id, result_param) values ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING * | client backend | ||
3333716331 | revizia | 32764 | 16402 | postgres | core-api | 10.0.20.107 | 26561 | 2025-08-20 09:11:43.607706-03 | 2025-08-20 09:18:33.577575-03 | 2025-08-20 09:18:33.577637-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 359 | 16402 | postgres | cfe-importar-sqs | 10.0.16.217 | 10881 | 2025-08-20 09:11:45.319853-03 | 2025-08-20 09:17:52.218283-03 | 2025-08-20 09:17:52.218468-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 29339 | 16402 | postgres | fiscal-intelligence-api | 10.0.20.107 | 65017 | 2025-08-20 09:06:46.65192-03 | 2025-08-20 09:18:13.430086-03 | 2025-08-20 09:18:13.430104-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
3333716331 | revizia | 29359 | 16402 | postgres | cfe-importar-sqs | 10.0.16.46 | 55259 | 2025-08-20 09:06:51.717591-03 | 2025-08-20 09:16:48.460836-03 | 2025-08-20 09:16:48.461047-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 8023 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.16.232 | 15809 | 2025-08-20 09:16:37.081826-03 | 2025-08-20 09:16:37.28436-03 | 2025-08-20 09:16:37.28442-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
16450 | fiscal | 29360 | 16402 | postgres | cfe-importar-sqs | 10.0.16.225 | 5473 | 2025-08-20 09:06:51.71785-03 | 2025-08-20 09:17:58.957191-03 | 2025-08-20 09:17:58.957281-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 371 | 16402 | postgres | cfe-importar-sqs | 10.0.20.66 | 44161 | 2025-08-20 09:11:46.014345-03 | 2025-08-20 09:17:55.190017-03 | 2025-08-20 09:17:55.190157-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 29361 | 16402 | postgres | cfe-importar-sqs | 10.0.16.225 | 36297 | 2025-08-20 09:06:51.718098-03 | 2025-08-20 09:16:48.950464-03 | 2025-08-20 09:16:48.951839-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 370 | 16402 | postgres | cfe-importar-sqs | 10.0.20.66 | 37559 | 2025-08-20 09:11:46.014078-03 | 2025-08-20 09:17:56.629782-03 | 2025-08-20 09:17:56.630875-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 25494 | 16402 | postgres | cfe-job-download-documentos | 10.0.16.225 | 13787 | 2025-08-20 08:57:43.471105-03 | 2025-08-20 09:18:39.228201-03 | 2025-08-20 09:18:39.228231-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 29362 | 16402 | postgres | cfe-importar-sqs | 10.0.16.46 | 20001 | 2025-08-20 09:06:51.761595-03 | 2025-08-20 09:16:46.924174-03 | 2025-08-20 09:16:46.925512-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8024 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.20.66 | 63093 | 2025-08-20 09:16:37.081827-03 | 2025-08-20 09:16:37.163959-03 | 2025-08-20 09:16:37.163993-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
3333716331 | revizia | 29366 | 16402 | postgres | cfe-importar-sqs | 10.0.16.225 | 2133 | 2025-08-20 09:06:52.214806-03 | 2025-08-20 09:16:51.171313-03 | 2025-08-20 09:16:51.171401-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 372 | 16402 | postgres | cfe-importar-sqs | 10.0.16.217 | 41349 | 2025-08-20 09:11:46.038918-03 | 2025-08-20 09:17:58.955897-03 | 2025-08-20 09:17:58.956051-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 962 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.20.66 | 35481 | 2025-08-20 09:12:47.283504-03 | 2025-08-20 09:18:34.208586-03 | 2025-08-20 09:18:34.209838-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8025 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.20.66 | 46083 | 2025-08-20 09:16:37.093177-03 | 2025-08-20 09:18:15.65481-03 | 2025-08-20 09:18:15.654854-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 496 | 16402 | postgres | PostgreSQL JDBC Driver | 10.0.16.217 | 58849 | 2025-08-20 09:11:52.887543-03 | 2025-08-20 09:16:12.301135-03 | 2025-08-20 09:16:12.310727-03 | Client | ClientRead | idle | SELECT d.key, d.cnpj_issuer AS cnpjIssuer, d.cnpj_addressee AS cnpjAddressee, ( SELECT ds.status FROM document_status ds WHERE d.cnpj_issuer = ds.cnpj_issuer AND d.nsu = ds.nsu AND d.key = ds.key AND d.protocol = ds.protocol AND d.type = ds.type ) status, d.type, d.data, d.info, d.imported_at AS importedAt, d.name_file AS nameFile, d.data_emissao AS dataEmissao, d.data_entrada_saida AS dataEntradaSaida, ARRAY_TO_STRING( ARRAY( select distinct item.produto -> 'prod' ->> 'cfop' as cfop from jsonb_array_elements(d.data -> 'infCFe' -> 'det') WITH ORDINALITY item(produto) ), ', ' ) as cfops, cast(d.data -> 'infCFe' -> 'ide' ->> 'ncFe' as int8) AS numeroNota FROM document d WHERE d.cnpj_issuer = $1 AND d.data_emissao BETWEEN ($2) AND ($3) AND ($4 = 'nao_filtrar_ie' OR d.data -> 'infCFe' -> 'emit' ->> 'ie' =$5) AND d.type LIKE 'CFE_0%' ORDER BY d.data_emissao LIMIT $6 OFFSET $7 | client backend | ||||||
1665815312 | documents | 29531 | 16402 | postgres | cfe-importar-sqs | 10.0.16.46 | 36239 | 2025-08-20 09:06:59.434997-03 | 2025-08-20 09:16:52.09134-03 | 2025-08-20 09:16:52.092383-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 29520 | 16402 | postgres | fiscal-intelligence-core-job | 10.0.16.232 | 13705 | 2025-08-20 09:06:56.16185-03 | 2025-08-20 09:17:36.87103-03 | 2025-08-20 09:17:36.871177-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
1665815312 | documents | 29762 | 16402 | postgres | nfe-lambda-aws | 10.0.16.46 | 34833 | 2025-08-20 09:07:34.045024-03 | 2025-08-20 09:17:28.670369-03 | 2025-08-20 09:17:28.672444-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8026 | 16402 | postgres | mensageria-api | 10.0.16.217 | 38687 | 2025-08-20 09:16:37.826942-03 | 2025-08-20 09:18:41.028088-03 | 2025-08-20 09:18:41.028319-03 | 2025-08-20 09:18:41.028354-03 | Client | ClientRead | idle in transaction | 792182431 | select solicitaca0_.id as id1_2_, solicitaca0_.cnpj as cnpj2_2_, solicitaca0_.codigo_status_resposta as codigo_s3_2_, solicitaca0_.data_fim_download as data_fim4_2_, solicitaca0_.data_inicio_download as data_ini5_2_, solicitaca0_.data_solicitacao as data_sol6_2_, solicitaca0_.data_ultima_resposta as data_ult7_2_, solicitaca0_.descricao_status_resposta as descrica8_2_, solicitaca0_.maximo_nsu_disponivel as maximo_n9_2_, solicitaca0_.mensagem_erro as mensage10_2_, solicitaca0_.nsu_inicio as nsu_ini11_2_, solicitaca0_.quantidade_documentos as quantid12_2_, solicitaca0_.status as status13_2_, solicitaca0_.ultimo_nsu_disponivel as ultimo_14_2_, solicitaca0_.ultimo_nsu_solicitado as ultimo_15_2_ from public.solicitacao_download_nfe solicitaca0_ where solicitaca0_.cnpj=$1 order by solicitaca0_.id desc limit $2 | client backend | ||||
3333716331 | revizia | 8027 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 59256 | 2025-08-20 09:16:38.148799-03 | 2025-08-20 09:16:48.724769-03 | 2025-08-20 09:16:48.724796-03 | Client | ClientRead | idle | -4518006279650829961 | ABORT TRANSACTION | client backend | |||||
16450 | fiscal | 8028 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 59262 | 2025-08-20 09:16:38.152303-03 | 2025-08-20 09:18:27.288641-03 | 2025-08-20 09:18:27.288728-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 960 | 16402 | postgres | cte-lambda-aws | 10.0.16.232 | 26545 | 2025-08-20 09:12:46.888991-03 | 2025-08-20 09:18:36.917898-03 | 2025-08-20 09:18:36.918037-03 | Client | ClientRead | idle | ROLLBACK | client backend | ||||||
3333716331 | revizia | 8031 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 59264 | 2025-08-20 09:16:38.721827-03 | 2025-08-20 09:18:30.102525-03 | 2025-08-20 09:18:30.102551-03 | Client | ClientRead | idle | -4518006279650829961 | ABORT TRANSACTION | client backend | |||||
1665815312 | documents | 523 | 16402 | postgres | cfe-importar-sqs | 10.0.16.55 | 61133 | 2025-08-20 09:11:55.816096-03 | 2025-08-20 09:17:53.786629-03 | 2025-08-20 09:17:53.787674-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 522 | 16402 | postgres | cfe-importar-sqs | 10.0.16.91 | 35567 | 2025-08-20 09:11:55.815765-03 | 2025-08-20 09:17:52.180765-03 | 2025-08-20 09:17:52.180839-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 8046 | 16402 | postgres | certificado-api | 10.0.16.91 | 37973 | 2025-08-20 09:16:41.243533-03 | 2025-08-20 09:17:31.479858-03 | 2025-08-20 09:17:31.480001-03 | Client | ClientRead | idle | client backend | |||||||
3333716331 | revizia | 8047 | 16402 | postgres | certificado-api | 10.0.20.66 | 64565 | 2025-08-20 09:16:41.243792-03 | 2025-08-20 09:18:37.567494-03 | 2025-08-20 09:18:37.56774-03 | Client | ClientRead | idle | client backend | |||||||
1665815312 | documents | 8052 | 16402 | postgres | mensageria-api | 10.0.16.91 | 15387 | 2025-08-20 09:16:42.818703-03 | 2025-08-20 09:18:03.645003-03 | 2025-08-20 09:18:03.646115-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
16450 | fiscal | 8063 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.225 | 64945 | 2025-08-20 09:16:46.645257-03 | 2025-08-20 09:18:03.643047-03 | 2025-08-20 09:18:03.643174-03 | Client | ClientRead | idle | client backend | |||||||
16450 | fiscal | 8064 | 16402 | postgres | fiscal-intelligence-sped-analises-job | 10.0.16.225 | 46495 | 2025-08-20 09:16:46.652927-03 | 2025-08-20 09:18:38.200133-03 | 2025-08-20 09:18:38.201456-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
3333716331 | revizia | 8068 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 59048 | 2025-08-20 09:16:47.817846-03 | 2025-08-20 09:16:49.021387-03 | 2025-08-20 09:16:49.021564-03 | Client | ClientRead | idle | -4518006279650829961 | ABORT TRANSACTION | client backend | |||||
16450 | fiscal | 8069 | 16402 | postgres | postgres_fdw | 127.0.0.1 | 59062 | 2025-08-20 09:16:47.839003-03 | 2025-08-20 09:16:47.915653-03 | 2025-08-20 09:16:47.915676-03 | Client | ClientRead | idle | 5387600465647979654 | COMMIT TRANSACTION | client backend | |||||
1665815312 | documents | 8060 | 16402 | postgres | nfe-lambda-aws | 10.0.16.232 | 13873 | 2025-08-20 09:16:45.163079-03 | 2025-08-20 09:18:37.734106-03 | 2025-08-20 09:18:37.736497-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8073 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 45281 | 2025-08-20 09:16:48.554547-03 | 2025-08-20 09:17:43.222295-03 | 2025-08-20 09:17:43.224359-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8074 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 14511 | 2025-08-20 09:16:48.567461-03 | 2025-08-20 09:17:21.271207-03 | 2025-08-20 09:17:21.273719-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
1665815312 | documents | 8075 | 16402 | postgres | nfe-lambda-aws | 10.0.16.217 | 63937 | 2025-08-20 09:16:48.588336-03 | 2025-08-20 09:18:35.901629-03 | 2025-08-20 09:18:35.904212-03 | Client | ClientRead | idle | COMMIT | client backend | ||||||
888 | 2025-06-01 22:10:25.190835-03 | Activity | BgWriterMain | background writer | |||||||||||||||||
895 | 2025-06-01 22:10:25.239278-03 | Activity | ArchiverMain | archiver | |||||||||||||||||
887 | 2025-06-01 22:10:25.190687-03 | Timeout | CheckpointWriteDelay | checkpointer | |||||||||||||||||
894 | 2025-06-01 22:10:25.23911-03 | Activity | WalWriterMain | walwriter |