Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YQ0bM-0007Ny-KN for pgsql-general@arkaria.postgresql.org; Mon, 23 Feb 2015 21:31:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YQ0bK-0005d7-NN for pgsql-general@arkaria.postgresql.org; Mon, 23 Feb 2015 21:31:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YQ0bJ-0005d1-5i for pgsql-general@postgresql.org; Mon, 23 Feb 2015 21:31:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YQ0bG-0003dM-Fw for pgsql-general@postgresql.org; Mon, 23 Feb 2015 21:31:35 +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 t1NLVSfu012784; Mon, 23 Feb 2015 16:31:28 -0500 From: Tom Lane To: Dave Cramer cc: Adrian Klaver , George Woodring , pgsql-general Subject: Re: SQL solution for my JDBC timezone issue In-reply-to: References: <31121.1424706593@sss.pgh.pa.us> <54EB8DA8.6060302@aklaver.com> Comments: In-reply-to Dave Cramer message dated "Mon, 23 Feb 2015 15:32:31 -0500" Date: Mon, 23 Feb 2015 16:31:28 -0500 Message-ID: <12783.1424727088@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Dave Cramer writes: > Everytime you get a connection the driver will issue set timezone ... > It does not change the default time zone for the server (AFAICS) Hmm ... depending on exactly how you issue it, it might become the default for the session, I think. I seem to recall that parameter settings included in the startup packet become session-lifespan defaults. If you issued the SET as a separate command then a RESET ought to undo it. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general