Re: [REVIEW] pg_last_xact_insert_timestamp
От | Fujii Masao |
---|---|
Тема | Re: [REVIEW] pg_last_xact_insert_timestamp |
Дата | |
Msg-id | CAHGQGwH=y21SYbxizUizJsYVs18y5xcy7HyK0Wn+QAyAbG1r3g@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [REVIEW] pg_last_xact_insert_timestamp (Simon Riggs <simon@2ndQuadrant.com>) |
Список | pgsql-hackers |
On Fri, Sep 30, 2011 at 4:18 PM, Simon Riggs <simon@2ndquadrant.com> wrote: > If we want to measure times, we can easily send regular messages into > WAL to provide this function. Using checkpoint records would seem > frequent enough to me. We don't always send checkpoint records but we > can send an info message instead if we are streaming. If > archive_timeout is not set and max_wal_senders > 0 then we can send an > info WAL message with timestamp on a regular cycle. What timestamp are you thinking the walsender should send? What we need is the timestamp which is comparable with the result of pg_last_xact_replay_timestamp() which returns the timestamp of the transaction commit or abort record. So, even if we adopt your proposal, ISTM that we still need to collect the timestamp for each commit. No? Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
В списке pgsql-hackers по дате отправления: