Multiple Wait Events for extensions

Поиск
Список
Период
Сортировка
От legrand legrand
Тема Multiple Wait Events for extensions
Дата
Msg-id 1540229294286-0.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: Multiple Wait Events for extensions
Список pgsql-hackers
Hello,
I'm playing with adding into my pg_stat_statements extension a wait event
for pgss time duration (pgss_store)
 Adding pgstat_report_wait_start(PG_WAIT_EXTENSION) 
 gives wait type = "Extension" / event name "Extension"
and that's perfect.

Now I would like to add a second wait event (for exemple a Planner
information based on planner_hook)
Yes I know it's not a "wait", but that's not even possible because 
there is only one event type and one event name available for all extensions
...


Could this be changed to offer an extension the ability to log multiple
events 
and many extensions to work together ?

What about a pgstat_report_extension_wait_start(i) function
displaying Wait type = "Extension name"
and a predifined event numbers (i in the range 1 to 10)  as event name ?

I'm not able to write it, but I'm ready to test it deeply ;o)
Regards
PAscal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [Patch] pg_rewind: options to use restore_command fromrecovery.conf or command line
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Avoid duplicate XIDs at recovery when building initialsnapshot