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 1hybgP-0001V2-Cc for pgsql-general@arkaria.postgresql.org; Fri, 16 Aug 2019 12:50: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 1hybgM-0002vs-Hb for pgsql-general@arkaria.postgresql.org; Fri, 16 Aug 2019 12:50:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hybgM-0002q0-5y for pgsql-general@lists.postgresql.org; Fri, 16 Aug 2019 12:50:14 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hybgJ-0001Mb-KL for pgsql-general@postgresql.org; Fri, 16 Aug 2019 12:50:13 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id BCB18993A2 for ; Fri, 16 Aug 2019 05:50:08 -0700 (PDT) Date: Fri, 16 Aug 2019 05:50:08 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Variable constants ? In-Reply-To: <11025034d9e2c2b5e0316aa1f80dfe68@swisspug.org> Message-ID: References: <20190815205657.GA2593@panix.com> <11025034d9e2c2b5e0316aa1f80dfe68@swisspug.org> 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, 16 Aug 2019, Charles Clavadetscher wrote: > Another way to keep a history is using a daterange instead of two columns for > start and end date. Something like > > create table labor_rate_mult ( > rate real primary_key, > validity daterange not null > ) Charles, Just out of curiosity, what is the range for a rate that is still current? Does it change every day? Regards, Rich