Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vAaAU-003ToG-7s for pgsql-general@arkaria.postgresql.org; Sun, 19 Oct 2025 20:38:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vAaAT-00CMub-04 for pgsql-general@arkaria.postgresql.org; Sun, 19 Oct 2025 20:38:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vAaAS-00CMuJ-MA for pgsql-general@lists.postgresql.org; Sun, 19 Oct 2025 20:38:15 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vAaAP-0036Xz-1V for pgsql-general@postgresql.org; Sun, 19 Oct 2025 20:38:15 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 122432A14D6 for ; Sun, 19 Oct 2025 13:38:11 -0700 (PDT) Date: Sun, 19 Oct 2025 13:38:11 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Convert date and time colums to datetime In-Reply-To: <54588BDB-434E-42C4-A412-CC0F5A3DE7FB@gmail.com> Message-ID: References: <54588BDB-434E-42C4-A412-CC0F5A3DE7FB@gmail.com> 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: Archived-At: Precedence: bulk On Sun, 19 Oct 2025, Rob Sargent wrote: > I think you have to ask why those values were separated in the first > place. For instance if they are thought of as a pair in most queries then > an alteration might be in order. There can be a large one time cost if > these tables occur in a lot of separate sql calls in the business logic. Rob, Good point. They're in the contacts table and I use them to determine when to make another contact and if prior contacts were more productive in the morning or afternoon. Thanks, Rich