Re: Hot-Standby and sequences

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hot-Standby and sequences
Дата
Msg-id 20357.1296659633@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Hot-Standby and sequences  (Wouter D'Haeseleer <wdh@vasco.com>)
Ответы Re: Hot-Standby and sequences  (Wouter D'Haeseleer <wdh@vasco.com>)
Список pgsql-general
"Wouter D'Haeseleer" <wdh@vasco.com> writes:
> I have a question about sequences in combination with streaming
> replication.
> It seems something strange is happening with sequences which are
> streamed to the slave.

> When updating the sequence the last_value on the slave shifts with 32
> and halts at this value until the master increased the value also with
> 32.
> Is this normal behavior ?

Yes, this is expected because of the hacks that are used to minimize
the number of WAL records emitted during nextval() operations.  The
slave is seeing the state that would prevail on the master, too, if the
master were to crash and restart.

            regards, tom lane

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

Предыдущее
От: Wim Bertels
Дата:
Сообщение: redirecting query statement and output to a marked up file, using psql
Следующее
От: Wouter D'Haeseleer
Дата:
Сообщение: Re: Hot-Standby and sequences