Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjRPQ-0001r7-9r for pgsql-novice@arkaria.postgresql.org; Sat, 06 Nov 2021 19:31:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mjRPO-0001gq-K0 for pgsql-novice@arkaria.postgresql.org; Sat, 06 Nov 2021 19:31:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjRPO-0001gh-AQ for pgsql-novice@lists.postgresql.org; Sat, 06 Nov 2021 19:31:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjRPM-0005J8-4d for pgsql-novice@lists.postgresql.org; Sat, 06 Nov 2021 19:31:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1A6JVIpA593393; Sat, 6 Nov 2021 15:31:18 -0400 From: Tom Lane To: Mike Elston cc: pgsql-novice@lists.postgresql.org Subject: Re: Specified date type but created column is timestamp without time zone In-reply-to: References: Comments: In-reply-to Mike Elston message dated "Sun, 07 Nov 2021 08:11:32 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <593391.1636227078.1@sss.pgh.pa.us> Date: Sat, 06 Nov 2021 15:31:18 -0400 Message-ID: <593392.1636227078@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mike Elston writes: > I created a table containing a column of type "date" but the > describe command reports that the created column is "timestamp without time > zone". Why isn't it simply "date"? > psql (EnterpriseDB) 13.4.8 If you're using EDB, their server is hacked in a lot of ways to act more like Oracle, and I think this discrepancy is one of them. Oracle's idea of "date" corresponds more or less to our "timestamp", so they translate. regards, tom lane