Re: LISTEN/NOTIFY for lightweight replication

Поиск
Список
Период
Сортировка
От Ted Shab
Тема Re: LISTEN/NOTIFY for lightweight replication
Дата
Msg-id 20041013155619.98465.qmail@web41003.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: LISTEN/NOTIFY for lightweight replication  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Thanks.  I was thinking iirc was the transport
protocol :-)

Looks like dblink is the best bet here.

--Ted
--- Richard Huxton <dev@archonet.com> wrote:

> Ted Shab wrote:
> > Richard,
> >
> > Thanks for the response.
> >
> > I'll look into both the dblink and iirc.
> >
> > Do you know of any extended examples of either?
>
> dblink is in the contrib/ folder of the source
> distribution and possibly
> your packaged version if you use such a thing. Never
> needed it myself,
> but the documentation looks clear enough.
>
> As for listen/notify possibly dropping duplicate
> notifications... Ah!
> it's in the "SQL COMMANDS" reference part of the
> manuals
>
> NOTIFY behaves like Unix signals in one important
> respect: if the same
> condition name is signaled multiple times in quick
> succession,
> recipients may get only one notify event for several
> executions of
> NOTIFY. So it is a bad idea to depend on the number
> of notifies
> received. Instead, use NOTIFY to wake up
> applications that need to pay
> attention to something, and use a database object
> (such as a sequence)
> to keep track of what happened or how many times it
> happened.
>
> --
>    Richard Huxton
>    Archonet Ltd
>




_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: LISTEN/NOTIFY for lightweight replication
Следующее
От: Tino Wildenhain
Дата:
Сообщение: Re: Commit / Rollback in PL/pgSQL ?