RE: How to get the content of Bind variables

Поиск
Список
Период
Сортировка
От ROS Didier
Тема RE: How to get the content of Bind variables
Дата
Msg-id 046ba14f989745088b725b1ed5e5af15@PCYINTPEXMU001.NEOPROD.EDF.FR
обсуждение исходный текст
Ответ на Re: How to get the content of Bind variables  (Sergei Kornilov <sk@zsrv.org>)
Список pgsql-performance
Hi Sergei

    Thank you for your explanation. I can understand for the lock wait message, but I have no DETAIL section in my
entirelog file. Why ? 
              I have plenty of STATEMENT sections ...

    Thanks in advance

Best Regards
Didier ROS

-----Message d'origine-----
De : sk@zsrv.org [mailto:sk@zsrv.org]
Envoyé : samedi 2 mars 2019 17:34
À : ROS Didier <didier.ros@edf.fr>; legrand_legrand@hotmail.com; pgsql-performance@postgresql.org
Objet : Re: How to get the content of Bind variables

Hello

Postgresql does not log statement parameters on log_lock_wait. Because this is not implemented:
https://github.com/postgres/postgres/blob/REL_10_STABLE/src/backend/storage/lmgr/proc.c#L1461
Compare with errdetail_params routine in this file:
https://github.com/postgres/postgres/blob/REL_10_STABLE/src/backend/tcop/postgres.c#L1847 

Currently query parameters can be logged only at the end of successful query execution.

regards, Sergei



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 по дате отправления:

Предыдущее
От: ROS Didier
Дата:
Сообщение: RE: How to get the content of Bind variables
Следующее
От: Mariel Cherkassky
Дата:
Сообщение: pgstattuple_approx for toasted table