COMO ENCONTRAR UMAAGULHA NO PALHEIRO DE
LOGS DO POSTGRESQLDICKSON S. GUEDES
, PGBR2013 - PORTO VELHO RO
VAMOS VER COMO TRANFORMAR ISTO…2013-07-02 14:32:47.756 -0300,"postgres","postgres",6817,"[local]",51d30ebe.1aa1,3,"idle",2013-07-02 14:32:46 BRT,,0,LOG,00000,"disconnection: session time: 0:00:01.258 user=postgres database=postgres host=[local]",,,,,,,,,"psql"2013-07-02 14:32:51.901 -0300,"sistema","banco",5263,"10.1.3.15:38337",51d2f128.148f,1,"SELECT",2013-07-02 12:26:32 BRT,53/1448601,0,LOG,00000,"duration: 4445.476 ms execute <unnamed>: select l.cod_xpto, null, l.cod_pre_xpto, l.cod_oper_xpto, l.dt_xpto, l.valor_xpto, null, c.cod_xpto, c.dv_cod_xpto, c.descricao, l.tipo from xpto l join plxpto p on (l.seq_xpto = p.seq_xpto) join coxpto c on (p.xpto = c.seq_xpto) where c.cod_xpto = $1 and l.dt_xpto between $2 and $3 and l.cod_xpto = $4 and l.situacao IN ($5, $6, $7) union select d.cod_xpto, d.cod_de, d.cod_pre_xpto, l.cod_o_xpto, l.dt_xpto, null, d.valor_de, c.cod_xpto, c.dv_cod_xpto, c.descricao,d.operacao from desdxpto d join xpto l on (d.cod_xpto = l.cod_xpto and d.cod_xpto= l.cod_xpto) join plxpto p on (d.seq_xpto = p.seq_xpto) join coxpto c on (p.xpto = c.seq_xpto) where c.cod_xpto = $8 and l.dt_xpto between $9 and $10 and l.cod_xpto = $11 and l.situacao IN ($12, $13, $14) ","xpto: $1 = '1001001', $2 = '2013-05-01', $3 = '2013-06-25', $4 = '201', $5 = '287', $6 = '88', $7 = '200', $8 = '111001001', $9 = '2013-05-01', $10 = '2013-06-25', $11 = '13', $12 = '287', $13 = '208', $14 = '29'",,,,,,,,""
E PARA FINALIZAR …ontem em SP a temperatura caiuhoje em CE a temperatura subiusemana passada em RJ a temperatura estabilizou
QUESTÕES?email/gtalk: [email protected]: @guedizyoutube: guedizgithub: guedeshttp://guedesoft.nethttp://www.timbira.com.br