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 1gfXoD-0004Hx-In for pgsql-general@arkaria.postgresql.org; Fri, 04 Jan 2019 22:19:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gfXoC-0005x4-6K for pgsql-general@arkaria.postgresql.org; Fri, 04 Jan 2019 22:19:16 +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 1gfXoB-0005wx-R9 for pgsql-general@lists.postgresql.org; Fri, 04 Jan 2019 22:19:15 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfXo5-0004Wx-4n for pgsql-general@lists.postgresql.org; Fri, 04 Jan 2019 22:19:14 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id B6C829934F for ; Fri, 4 Jan 2019 14:19:07 -0800 (PST) Date: Fri, 4 Jan 2019 14:19:07 -0800 (PST) From: Rich Shepard To: "pgsql-generallists.postgresql.org" Subject: Re: Comparing dates in DDL In-Reply-To: Message-ID: References: <48966021-25ea-2ba3-32bd-9537859e01a4@a-kretschmer.de> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 4 Jan 2019, David G. Johnston wrote: > That would be the decision to make - does your toolkit support (or can be > made to support) the type and are you willing to choose a sub-optimal > database model because one or more applications happen to do things > differently? > > IMO the daterange datatype is the best type you can choose for the model; > now you have to figure out and decide where any tradeoffs are and if they > are worth it given your specific circumstances. David, Thanks for the insights. Regards, Rich