Voce poderia modificar no conf o seguinte parametro de acordo com sua
necessidade:

#log_line_prefix =                  # special values:

                                        #   %a = application name

                                        #   %u = user name

                                        #   %d = database name

                                        #   %r = remote host and port

                                        #   %h = remote host

                                        #   %p = process ID

                                        #   %t = timestamp without
milliseconds

                                        #   %m = timestamp with milliseconds

                                        #   %i = command tag

                                        #   %e = SQL state

                                        #   %c = session ID

                                        #   %l = session line number

                                        #   %s = session start timestamp

                                        #   %v = virtual transaction ID

                                        #   %x = transaction ID (0 if none)

                                        #   %q = stop here in non-session

                                        #        processes

                                        #   %% = '%'

                                        # e.g. '<%u%%%d> '

On Fri, 9 Oct 2015 at 11:37 Douglas Fabiano Specht <[email protected]>
wrote:

> bom dia pessoal,
> alguém poderia me dizer se existe alguma configuração no postgresql.conf
> para gravar o valor das variáveis no arquivo de log quando ocorre erro?
> atualmente grava desta maneira:
>
> INSERT INTO WMOTOR (CDRESERVA,IDORIGEM,IDLOCALIZADOR,NRRESERVA,
>
> DSOBSERVACAO,IDDOCTITULAR,DSTITULAR,FLSEXOTITULAR,DSENDERECO,DSBAIRRO,DSCIDADE,DSESTADO,
> DSPAIS,IDCODIGOAREA,DSTELEFONE,IDCEP,DSEMAIL,
> DHCADASTRO,FLINTEGRADO,DHINTEGRACAO,DHCANCELAMENTO,
>
> DSMOTIVOCANC,VLTOTAL,VLPAGO,IDTIPOPAGAMENTO,DSIDENTPAGAMENTO,FLATIVO,CDEMPRESA,
> IDCAFE, IDPENSAO, IDALMOCO)
> VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15,
> $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30,
> $31)
> 2015-10-09 00:14:50 BRTmotor ERROR:  character 0x81 of encoding "WIN1252"
> has no equivalent in "UTF8"
>
> precisaria saber o valor das Variáveis para identificar qual o campo está
> ocorrendo o erro e de qual cliente esta chegando esses caracteres.
>
> utilizamos Postgres 9.1 com Centos 5.7
>
>
> --
>
> Douglas Fabiano Specht
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a