Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gR9lQ-0005i8-31 for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 05:48:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gR9lO-0005rq-JX for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 05:48:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gR9lN-0005pa-H8 for pgsql-hackers@lists.postgresql.org; Mon, 26 Nov 2018 05:48:54 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gR9lI-0006V6-5N for pgsql-hackers@postgresql.org; Mon, 26 Nov 2018 05:48:52 +0000 Received: from epcas4p2.samsung.com (unknown [182.195.41.32]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20181126054840epoutp021f558fb20f613f40e8c2b10274e70afb~qloUMQxwI0714207142epoutp02c for ; Mon, 26 Nov 2018 05:48:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20181126054840epoutp021f558fb20f613f40e8c2b10274e70afb~qloUMQxwI0714207142epoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1543211320; bh=iGbaVFg/gX+IR6Sv382nFo3PDOoaqdM0dnmi+Mg4z9E=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=uBu6EJM7rHdJLRTrHNzuMYBSLcrEAJ0CdbtNUUYNN5+U/Nyqt1j+G15o7yg67QsyC sD3xz5Sjd2suPrLerfvfdEscPZeyXb4XC3tjAwfS4VPkeeSCrdYaLFdGD8i/uE9sGG KZ+qdOuGVi9m3urmQ0Y0TGJHx1Z0hB/p8YbF4L8k= Received: from epsmges4p3.samsung.com (unknown [182.195.42.35]) by epcas4p4.samsung.com (KnoxPortal) with ESMTP id 20181126054840epcas4p4d4179ee640f3881a7fa27cfdae5e7170~qloTysAfA1680616806epcas4p4U; Mon, 26 Nov 2018 05:48:40 +0000 (GMT) Received: from epcas4p4.samsung.com ( [182.195.41.34]) by epsmges4p3.samsung.com (EPCPMTA) with SMTP id 43.81.03695.7398BFB5; Mon, 26 Nov 2018 14:48:39 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas4p3.samsung.com (KnoxPortal) with ESMTPA id 20181126054839epcas4p3a068237ef0a02cc26a3ac08a99d14eb0~qloTftYP11149411494epcas4p3L; Mon, 26 Nov 2018 05:48:39 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181126054839epsmtrp29f75ff704edd71fdc6d167fe0812599c~qloTcFPkF2600226002epsmtrp2L; Mon, 26 Nov 2018 05:48:39 +0000 (GMT) X-AuditID: b6c32a23-d17ff70000000e6f-c6-5bfb893796b7 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A4.01.03694.7398BFB5; Mon, 26 Nov 2018 14:48:39 +0900 (KST) Received: from lmkPC (ip-70-2-253-71.ftwttx.spcsdns.net [70.2.253.71]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181126054839epsmtip2f1a394859e88ecfede2046b4592eb4d4~qloTPraMQ2905129051epsmtip2Z; Mon, 26 Nov 2018 05:48:39 +0000 (GMT) From: "myungkyu.lim" To: "'Michael Paquier'" , "'Masahiko Sawada'" Cc: "'PostgreSQL-development'" , , In-Reply-To: <20181122075321.GJ3369@paquier.xyz> Subject: RE: [Todo item] Add entry creation timestamp column to pg_stat_replication Date: Mon, 26 Nov 2018 14:48:39 +0900 Message-ID: <010201d4854b$ae87e510$0b97af30$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Content-Language: ko Thread-Index: AQIpMBNL80D/Q2LtcJyS7faIicNbPAKP2N8XAoJHiIwBm4dm+QKYOMbOpG4A/DA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFKsWRmVeSWpSXmKPExsWy7bCmkq555+9ogznrbSx+vj3DZHFo0Tk2 i7v72pgt7uyYzmbRvmshswOrx85Zd9k97k3vZ/e4sG8au0ffllWMASxRXDYpqTmZZalF+nYJ XBkvfzSyFCznrmh//pW5gXE+ZxcjB4eEgInEpH05XYxcHEICSxkl7t7/xQjhfGKU2Px/GzOE 841R4vmv7+xdjJxgHV8vTmOHSOxllFh67RIThPObUeLYi9MsIFVsAvoS13ccYQWxRQRiJLZO bgKLMwsUS0w7uYERxOYUMJDYsH0z2FRhgVCJ3vXLwOIsAqoSs54dB+vlFbCU+HD7IBOELShx cuYTqDnyEtvfzmGGuEhBYsfZ14wQcRGJ2Z1tzBB7/STmXbgHdqmEwG02iY6P/VAvuEi8+zKF FcIWlnh1fAtUXEri87u9bBB2ucTdjruMEHaFRENnH1SNvsTsBW2soMBjFtCUWL9LH2Ivn8Sc bpA7QWHKK9HRJgRhqkk8OM8N0SgjsfLXFqjhHhL/2t+yTWBUnIXksVlIHpuF5JlZCLsWMLKs YhRLLSjOTU8tNikw1itOzC0uzUvXS87P3cQITjFayjsY3y3wPsQowMGoxMP74s+vaCHWxLLi ytxDjBIczEoivCXtv6OFeFMSK6tSi/Lji0pzUosPMUpzsCiJ81ZIzo0WEkhPLEnNTk0tSC2C yTJxcEo1MFrO69d6uO35TAUzpdY3alzMuxffmZXLM9c4/e2J2Bp5jkubf+qre8313lN/76QP 6//XT40FDxRbufv3cahvDpeKc9K7wCwzsfeBTHEw36ELH3Tltkz65V/RvTQ0P8ZR7LHY+Wdx 4fF8Bw5L6wsKqhZELis7Vb1cqrhXjKnzrdCy/1XiDna6SizFGYmGWsxFxYkAkvDMIi0DAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsWy7bCSvK555+9og5vvVCx+vj3DZHFo0Tk2 i7v72pgt7uyYzmbRvmshswOrx85Zd9k97k3vZ/e4sG8au0ffllWMASxRXDYpqTmZZalF+nYJ XBkvfzSyFCznrmh//pW5gXE+ZxcjJ4eEgInE14vT2LsYuTiEBHYzSkx/Op0VIiEj0XPvBnMX IweQLSwx85YESFhI4CejxOazfiA2m4C+xPUdR8DKRQRiJL5OnwlmMwuUSkzqessKMXMGk8Tx LwfZQRKcAgYSG7ZvBrOFBYIldt5uYgSxWQRUJWY9Ow7WzCtgKfHh9kEmCFtQ4uTMJywgNzAL 6Em0bWSEmC8vsf3tHGaIMxUkdpx9DRUXkZjd2cYMcY+fxLwL99gnMArPQjJpFsKkWUgmzULS vYCRZRWjZGpBcW56brFhgVFearlecWJucWleul5yfu4mRnC0aGntYDxxIv4QowAHoxIP74s/ v6KFWBPLiitzDzFKcDArifCWtP+OFuJNSaysSi3Kjy8qzUktPsQozcGiJM4rn38sUkggPbEk NTs1tSC1CCbLxMEp1cBY8z9ucXEPp/4872vWzBcOixceuHw+cyvb+91nm/ZOWnXZdM9Bhpa5 dxXeO91N3LvvU2jCqrrv+53i3hUuvJXwyOLJXaPOqp1M5xe0L9mlkVWmPivx172ff0XONBY/ XKnb89e3r2UNb7vfq9AtXlMXuQkbeH5U2DWpjkFJ57Lc7GSfxNsvQta9VGIpzkg01GIuKk4E AGXUpvSSAgAA X-CMS-MailID: 20181126054839epcas4p3a068237ef0a02cc26a3ac08a99d14eb0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 104P X-CMS-RootMailID: 20181115080226epcas4p1f81c51691d9f12f7fa94c198e84edb3a References: <007701d47cb9$8f414380$adc3ca80$@samsung.com> <20181115082748.GG1374@paquier.xyz> <20181122075321.GJ3369@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 15, 2018 at 5:27 PM Michael Paquier wrote: >> Good point. 'last_reply_send_time' is better. >> How about just 'reply_time'? > >Please note that the original thread has mentioned reply_timestamp as a >consensus: So I selected 'reply_time' because 'timestamp' was not used in stat field. >On Thu, Nov 15, 2018 at 05:33:26PM +0900, Masahiko Sawada wrote: >> Yeah, I also agree with 'reply_time'. But please also note that we had >> the discussion when there is not the similar system catalogs and >> fields. Now that we have them it might be worth to consider to follow >> the existing name for consistency. > >The fields in pg_stat_wal_receiver are named after their respective fields. >Now if you look at the fields from pg_stat_replication, you have those from >the standby: >sent_lsn => Last write-ahead log location sent on this connection write_lsn >=> Last write-ahead log location written to disk by this standby server >flush_lsn => Last write-ahead log location flushed to disk by this standby >server replay_lsn => Last write-ahead log location replayed into the >database on this standby server > >So to keep the brand consistent, reply_time looks like the best choice as >Sawada-san suggests? I agree. The fields naming in pg_stat_replication are some different from other views fields. Not used 'last_' or 'latest_' prefix in fields. Best regards, Myungkyu, Lim