31.11. Notice Processing - associating notices with calls

Поиск
Список
Период
Сортировка
От Pawel Veselov
Тема 31.11. Notice Processing - associating notices with calls
Дата
Msg-id CAMnJ+Bc7B+5XPWNzJPGWmt_T10L-anvmU6mFvRvm_W9=Fg2hGw@mail.gmail.com
обсуждение исходный текст
Ответы Re: 31.11. Notice Processing - associating notices with calls  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi.

What's the best way to "associate" an incoming notice with the statement that resulted in generating it? Notice operate on PGResult objects, but these objects only become available after the statement call is made. Should I have a global (or thread global, since my app is MT) "flag" that would tell the receiver what statement was executed last? I assume that the execution path is that notice call back is invoked while the statement function executes.

Thank you,
  Pawel.


В списке pgsql-general по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Error message "psql: could not connect to server: No such file or directory"
Следующее
От: "Anibal David Acosta"
Дата:
Сообщение: Re: Help, server doesn't start