Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bD12L-0006z6-8p for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 02:58:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bD12J-0007y6-Ml for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 02:58:35 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bD10w-0006TX-VV for pgsql-hackers@postgresql.org; Wed, 15 Jun 2016 02:57:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bD10r-0005RX-5I for pgsql-hackers@postgresql.org; Wed, 15 Jun 2016 02:57:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5F2uu7E027232; Tue, 14 Jun 2016 22:56:56 -0400 From: Tom Lane To: Ioseph Kim cc: "pgsql-hackers@postgresql.org" Subject: Re: increase message string buffer size of watch command of psql In-reply-to: <5760A343.8020501@postgresql.kr> References: <20160612145532.GA22965@postgresql.kr> <19478.1465782775@sss.pgh.pa.us> <20132.1465923383@sss.pgh.pa.us> <5760A343.8020501@postgresql.kr> Comments: In-reply-to Ioseph Kim message dated "Wed, 15 Jun 2016 09:37:23 +0900" Date: Tue, 14 Jun 2016 22:56:56 -0400 Message-ID: <27231.1465959416@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Ioseph Kim writes: > 2016년 06월 15일 01:56에 Tom Lane 이(가) 쓴 글: >> I take it from the vast silence that nobody particularly cares one way >> or the other. On reflection I think that this would be a good change >> to make, so I'll go do so unless I hear complaints soon. regards, tom >> lane > I propose to change from asctime() to sql current_timestamp value, > then users will change date format with set command DateStyle. That would require an additional SQL query each time through the loop, which seems like undue expense. It's also not terribly friendly to the goal of localization, I should think, given the limited number of datestyle options and the fact that none of them actually change day or month names to non-English choices. And it would imply changing the timestamps from psql's timezone to the backend's. While that might have been a good way to do it in a green field, it's not the way \watch has worked in the past, and given the lack of complaints I'm disinclined to change that. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers