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 1hOjur-0005H2-Kg for pgsql-general@arkaria.postgresql.org; Thu, 09 May 2019 14:20:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hOjuq-0002Y7-BO for pgsql-general@arkaria.postgresql.org; Thu, 09 May 2019 14:20:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOjun-00027p-Sn for pgsql-general@lists.postgresql.org; Thu, 09 May 2019 14:20:55 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOjul-0003Nt-7V for pgsql-general@postgresql.org; Thu, 09 May 2019 14:20:52 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B0491312; Thu, 9 May 2019 10:20:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 09 May 2019 10:20:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=d HIuTgT7vmcsIV1iKWsNXt10FEHKcghEy/WaXqtBTPs=; b=jcAJle1Fb6vUxlMNE dUsix8lb8c201GjWNnvg2EhCdxPiKdx815kX3Z+P7xh/0rzamJ8ZcW/Ib/XSk2nP 5rzIlKTqdFgwlge+3XKfuHsoLf9HRrD6goLNwv5zpsfIvKftfYVEL+qEX0251ofu qWAkzJKRiKdhvxP3q3IRbKiKiKCSAdeXfrmX//iq2c3nb+b/W6LMjjjQTxo4wnb7 gN6btdqO+C4wOr+ll3yKMB88az74c6DLQsRqhSNy7U6cC+A3yID0yGV0oH7C63Iw FxQRWQWlUxxHfMy8WGIbN8WNwzRMtstBlFHyxTIM5V+v5PV99/0b/unL/azw3M+l kCRbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=dHIuTgT7vmcsIV1iKWsNXt10FEHKcghEy/WaXqtBT Ps=; b=NJ0k+mFDnqbdKA/lPfoSXbFeZJdELoR6JzaORTxlx+/jlxKzBrUcvJujI cvU5rNqJCHyWWtip1Idb2aQMM/bc5dQYkPj2gVghNAbkZLyskC+bjRXPlbsWQlL0 ed1oD35kUv+KjPWp/FJ8Y0F7734752exgwxW+Pgq1087uwtr5+uBX46n+7Mm/hfT NhGN2YNU42mP+YH1BmBvxdY25yyv7GhUe5ViQHK6SFlVIy8L+kgFaSjap1Bdf+Ws mHs/ayrvFspnLHaBmvhnPhE9H+I5w93YY3bAXaxTqHfIdWhuAx8gw/dt4YYa24lG EpFWtImsDlNW8JXXYjCt4zJ28iCIw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeeigddugecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjedurddvuddv rdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 64FFA103D2; Thu, 9 May 2019 10:20:48 -0400 (EDT) Subject: Re: Column type changed "spontanously"? To: Chuck Martin , pgsql-general References: From: Adrian Klaver Message-ID: Date: Thu, 9 May 2019 07:20:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/9/19 6:14 AM, Chuck Martin wrote: > I have several columns that were created as "timestamp without time > zone", but I changed them in 2014 to "timestamp with time zone". > Recently, when I got notified that times had suddenly changed, I checked > and found the columns had reverted to "timestamp without time zone." > This seems impossible, yet it seems to have happened. Any ideas on what > could cause this? My application has the privileges to do this, as it > changed the data type to support time zones. But there is no code that > could change it back not to support time zones. > > The database in on > > "PostgreSQL 9.3.1 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) > 4.4.7 20120313 (Red Hat 4.4.7-3), 64-bit" > > What other information would help solve this? Following up on David's observation on updating minor releases, I came across this from the release notes for 9.3.3: " Avoid multiple name lookups during table and index DDL (Robert Haas, Andres Freund) If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed against a different table than the index creation, allowing for a privilege escalation attack. (CVE-2014-0062) " The commit notes: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=5f173040e324f6c2eebb90d86cf1b0cdb5890f0a > > Chuck Martin > Avondale Software -- Adrian Klaver adrian.klaver@aklaver.com