Re: [HACKERS] redolog - for discussion

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] redolog - for discussion
Дата
Msg-id 3678BAC6.2124CA81@krs.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] redolog - for discussion  (jwieck@debis.com (Jan Wieck))
Ответы RE: [HACKERS] redolog - for discussion  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список pgsql-hackers
Jan Wieck wrote:
> 
> >
> > I foresee problems with using _commands_ logging for
> > recovery/replication -:((
> >
...
> 
>     Yepp,  the order in which commands begun is absolutely not of
>     interest. Locking could already delay the  execution  of  one
>     command  until  another  one  started  later has finished and
>     released the lock.  It's a classic race condition.
> 
>     Thus, my plan was to log the queries just before the call  to
>     CommitTransactionCommand()  in  tcop. This has the advantage,

Oh, I see - you right!

...
> 
>     Unfortunately  query  level  logging get's hit by the current
>     implementation of sequence numbers. If  a  query  that  get's
...
> 
>     All that is painful and I don't see another solution yet than
>     to  hook  into  nextval(),  log  out the numbers generated in

Not so bad, having buffering these numbers in memory...

>     normal operation and getting back the same  numbers  in  redo
>     mode.
> 
>     The whole thing gets more and more complicated :-(

As usual -:))

Vadim


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

Предыдущее
От: Vadim Mikheev
Дата:
Сообщение: Re: [HACKERS] MVCC works in serialized mode!
Следующее
От: Karl Eichwalder
Дата:
Сообщение: Re: Have any ideas to support GNU gettext package ??