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 1hOjBl-00032I-Fa for pgsql-general@arkaria.postgresql.org; Thu, 09 May 2019 13:34:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hOjBk-00056u-58 for pgsql-general@arkaria.postgresql.org; Thu, 09 May 2019 13:34:20 +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 1hOjBN-00080J-8L for pgsql-general@lists.postgresql.org; Thu, 09 May 2019 13:33:58 +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 1hOjBJ-0002Fb-Rz for pgsql-general@postgresql.org; Thu, 09 May 2019 13:33:55 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 066B03A9; Thu, 9 May 2019 09:33:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 09 May 2019 09:33:52 -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=T YZQRUJvQZrlPWZK+cyxpEEi+u0MK6lhrcVlFv2Iy7g=; b=Sr69T2UgbxDcy52Tk SZyKJdqW+YdSPG5Oyv6zXpy2iiujPGr+T7WHoKhuvgif+sW7Ec7ZcQujMyfpRd0+ /wFsifAU8NsddRakDTNs5JmJQElpk6dOwj7DjoPI98V+HTw0ZzDdxw6lMCDf8kea 4xTNRL3M/2aYQncU4tFO20jZmNTX2BMW6W7Fd1loLWD8nyIXkJZ8t0q1un6hSzs9 eAVM/DJHoL6e17uCfD+Xu6GipdSmVfO4/3LbZwsmzRHeCMqwodlRFhfy4RSp7L2r 30DfK3NEdEaG2aI6JChw9R3ViCdM9ajmwe7NlhISaYoc61HPeOC0PV8lsspDGFd/ egODg== 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=TYZQRUJvQZrlPWZK+cyxpEEi+u0MK6lhrcVlFv2Iy 7g=; b=DHflhj+QFKb/8pEtWQSLDIC7ul0JoQT5R33VWpWX88+ETUyM5n4TwPdAm EVt7APT1DAS2Ltn/+jg+FfCsZBplSoE9haE7f9GGuIqGtAEyIxcbFTtXpGuPMtrO 3Va61chIRJ2DTyH27aF2qcTRKrtMf5W1cCLMKgVvRbzZjqFsLeLSSjJA+Lp+AXZn eBFhzZya5W+rDSIOlKSwf1Yme31pThXbfegqatnkzy3tWmUvMffXzTovNTzCrw85 hdKsy8CDB+IKELlhgqqP4UmjrBhYEslDsYV/3dmINwgswGxOuDwAzUGXzIsjz2yc uxQ3op/j63TdUwo522ws44U9ozYwQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeeigddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id B6B41103CB; Thu, 9 May 2019 09:33:50 -0400 (EDT) Subject: Re: Column type changed "spontanously"? To: Chuck Martin , pgsql-general References: From: Adrian Klaver Message-ID: Date: Thu, 9 May 2019 06:33:49 -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? Assuming you have log_statement set to ddl or higher and the logs still exist I would look in them for an ALTER TABLE ... statement on that column. > > Chuck Martin > Avondale Software -- Adrian Klaver adrian.klaver@aklaver.com