Re: Best way to check for new data.

Поиск
Список
Период
Сортировка
От Havasvölgyi Ottó
Тема Re: Best way to check for new data.
Дата
Msg-id 01cb01c5dc0c$cce42830$8400a8c0@OTTO
обсуждение исходный текст
Ответ на Best way to check for new data.  (Rodrigo Madera <rodrigo.madera@gmail.com>)
Список pgsql-performance
Rodrigo,
 
You could use LISTEN + NOTIFY with triggers.
In after_insert_statement trigger you could notify a listener, the client could query it immediately.
 
Best Regards,
Otto
 
----- Original Message -----
Sent: Friday, October 28, 2005 11:39 PM
Subject: [PERFORM] Best way to check for new data.

I have a table that holds entries as in a ficticious table Log(id integer, msg text).
 
Lets say then that I have the program log_tail that has as it´s sole purpose to print newly added data elements.
 
What is the best solution in terms of performace?
 
Thank you for your time,
Rodrigo
 

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

Предыдущее
От: Collin Peters
Дата:
Сообщение: Simple query: how to optimize
Следующее
От: "Roger Hand"
Дата:
Сообщение: Re: Simple query: how to optimize