Re: question about sql comments in postgresql server logs
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: question about sql comments in postgresql server logs |
| Дата | |
| Msg-id | 2501234.1628277292@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | question about sql comments in postgresql server logs (Alan Stange <stange@rentec.com>) |
| Ответы |
Re: question about sql comments in postgresql server logs
|
| Список | pgsql-general |
Alan Stange <stange@rentec.com> writes:
> In order to track down some bugs, we thought it would be useful to
> append some comments to the sql being sent to postgresql like this:
> select foo from bar -- a comment with some metadata
> however, the postgresql server was not including the appended comment in
> the log file.
> If we instead sent
> select foo from /* a comment with some metadata */ bar
> then the comment was included in the server log file as we had hoped.
If memory serves, this is a psql behavior not the server's.
I counsel using /* ... */ comments for the purpose.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера