Re: [SQL] MVCC and concurrent clients

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: [SQL] MVCC and concurrent clients
Дата
Msg-id 19990731180516.A16854@wallace.ece.rice.edu
обсуждение исходный текст
Ответ на MVCC and concurrent clients  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [SQL] MVCC and concurrent clients  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [SQL] MVCC and concurrent clients  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Fri, Jul 30, 1999 at 04:10:40PM -0400, Tom Lane wrote:
Tom - 
How about timestamps?

> something like this:
>     BEGIN TRANSACTION;
>     INSERT and/or UPDATE, setting each new or modified    row's updatedTime to 'now';
>     NOTIFY shared_table;
>     END TRANSACTION;
> 
> All clients are listeners for the NOTIFY messages, and whenever
> a notify is received, a client will do
>     SELECT * FROM shared_tableWHERE updateTime >= last_time_looked;

> 
> Alternatively, is there a better way to design the table structure for
> this application?  I would think "give me all recently modified tuples"
> is a pretty standard problem.
> 

Ross
-- 
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005


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

Предыдущее
От: "Stéphane FILLON"
Дата:
Сообщение: Tr: DUMP database for sample
Следующее
От: "Stéphane FILLON"
Дата:
Сообщение: DOMAIN DEFINITION