Re: Advice request : simultaneous function/data updates on manydatabases

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Advice request : simultaneous function/data updates on manydatabases
Дата
Msg-id 9c91ba15-23b4-3603-ec05-4b081778c6a0@aklaver.com
обсуждение исходный текст
Ответ на Re: Advice request : simultaneous function/data updates on manydatabases  (Guyren Howe <guyren@gmail.com>)
Список pgsql-general
On 3/4/20 2:42 PM, Guyren Howe wrote:
> On Mar 4, 2020, at 14:33 , Rory Campbell-Lange <rory@campbell-lange.net 
> <mailto:rory@campbell-lange.net>> wrote:
>>
>> Essentially we wish to reduce the window where the frontend and backend
>> aren't synchronised.
>>
>> If we have (for example) 200 databases which each take 2 seconds to
>> update, a client could be on the wrong frontend code for over 6 minutes.
> 
> Send each of the servers a PL/PGSQL method that executes all the things 
> in a transaction and then waits until the same clock time to commit. 

How do you know what the clock time will be?

> Then all the servers are committing at the same moment. They will still 
> be out of synch somewhat, but this would reduce the degree.


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: stan
Дата:
Сообщение: Determining the type of an obkect in plperl
Следующее
От: Rory Campbell-Lange
Дата:
Сообщение: Re: Advice request : simultaneous function/data updates on manydatabases