RE: How to get the content of Bind variables - Mailing list pgsql-performance

From ROS Didier
Subject RE: How to get the content of Bind variables
Date
Msg-id e98a3b508fb8457cbce36a59515d45be@PCYINTPEXMU001.NEOPROD.EDF.FR
Whole thread Raw
In response to Re: How to get the content of Bind variables  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: How to get the content of Bind variables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Hi
    Here is the information :

postgres=# show log_error_verbosity ;
 log_error_verbosity
---------------------
 default
(1 row)


postgres=# show log_statement ;
 log_statement
---------------
 none
(1 row)

I am trying now to set up log_statement :
log_statement=all ;
log_min_duration_statement=250;


Didier ROS
Expertise SGBD
EDF - DTEO - DSIT - IT DMA
Département Solutions Groupe
Groupe Performance Applicative
32 avenue Pablo Picasso
92000 NANTERRE
 
didier.ros@edf.fr
Tél. : +33 6 49 51 11 88




-----Message d'origine-----
De : pryzby@telsasoft.com [mailto:pryzby@telsasoft.com]
Envoyé : jeudi 28 février 2019 17:19
À : ROS Didier <didier.ros@edf.fr>
Cc : pgsql-performance@postgresql.org
Objet : Re: How to get the content of Bind variables

On Thu, Feb 28, 2019 at 12:21:56PM +0000, ROS Didier wrote:
> Statement: update t_shared_liste_valeurs set deletion_date=$1,
> deletion_login=$2, modification_date=$3, modification_login=$4,
> administrable=$5, libelle=$6, niveau=$7 where code=$8
>
> è how to get the content of the bind variables ?

What is your setting of log_error_verbosity ?
https://www.postgresql.org/docs/current/runtime-config-logging.html#GUC-LOG-ERROR-VERBOSITY

Also, I recommend using CSV logs, since they're easier to import into the DB and then easier to parse.
https://www.postgresql.org/docs/current/runtime-config-logging.html#GUC-LOG-ERROR-VERBOSITY

Also, note that you can either set log_min_duration_statement=0, which logs all statement durations, and associated
statements(if they haven't been previously logged). 

Or, you can set log_statement=all, which logs all statements (but duration is only logged according to
log_min_duration_statement).

Justin



Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires
etles informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa
destination,toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. 

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le
divulguerou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre
système,ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous
remercionségalement d'en avertir immédiatement l'expéditeur par retour du message. 

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont
sécuriséesou dénuées de toute erreur ou virus. 
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in
thisMessage is confidential. Any use of information contained in this Message not in accord with its purpose, any
disseminationor disclosure, either whole or partial, is prohibited except formal approval. 

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this
messagein error, please delete it and all copies from your system and notify the sender immediately by return message. 

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.



pgsql-performance by date:

Previous
From: "Jung, Jinho"
Date:
Subject: Re: Performance regressions found using sqlfuzz
Next
From: Laurenz Albe
Date:
Subject: Re: How to get the content of Bind variables