Re: Database transaction related

From: "John D(dot) Burger" <john(at)mitre(dot)org>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Database transaction related
Date: 2007-05-14 12:22:05
Message-ID: 6C759BC6-9078-40FE-8D58-30B9B5751E8C@mitre.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jasbinder Singh Bali wrote:

> could you please elaborate this concept of queue table?

The basic idea is to for the insert trigger to not explicitly kick
off the work you need to have done, but simply insert a row into a
"work request table". A separate process notices that there is a
work request, and performs the work. This can be done by a periodic
cron job, or using NOTIFY/LISTEN.

There was a fairly detailed discussion of this last month - the
thread starts here:

http://archives.postgresql.org/pgsql-general/2007-04/msg01152.php

- John D. Burger
MITRE

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2007-05-14 12:28:15 IGNORE Re: explain problem
Previous Message Sim Zacks 2007-05-14 12:21:54 explain problem