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 1vAfhB-004rvL-To for pgsql-general@arkaria.postgresql.org; Mon, 20 Oct 2025 02:32:25 +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 1vAfhA-00Dgt2-TO for pgsql-general@arkaria.postgresql.org; Mon, 20 Oct 2025 02:32:23 +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 1vAfhA-00Dgst-J7 for pgsql-general@lists.postgresql.org; Mon, 20 Oct 2025 02:32:23 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vAfh7-00399J-28 for pgsql-general@postgresql.org; Mon, 20 Oct 2025 02:32:23 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-78f3bfe3f69so3338300b3a.2 for ; Sun, 19 Oct 2025 19:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760927539; x=1761532339; darn=postgresql.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=1LxniKRbjX98JCdG0bJZz04hUTX9md/9aNxCdVLXS3k=; b=E7SlIHTFJY+9+Pwb5VpC5iC4FH+0EyDID17GaEJohb4Y2pRGMVenAFdoEfHHKVdurX UlW2cC1CyCJpvgySrn798mONgQUb3b9ygH0DNU4vNCM9jOpn3y6CY+qi2Mi8lykjVhRz /hVSGVD/o4N8ORbKSuY2EB+MqvXB4ZTPI/hEllHDNst+0zAWu9fW69qnGoQRvIEqub8t VWZjzfbKI20axUab4NLWeO+j+fjXMBjIejLyDpI26sUc9zCyzegYJ5rGqKd/XZBjqZA/ SxzEPqbwEl2z59kgR4TQUGQ6h6yrF0kpug6/AVeLV0Wrno2RKJA3ciJSbHiWRFUxmUWx bIBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760927539; x=1761532339; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1LxniKRbjX98JCdG0bJZz04hUTX9md/9aNxCdVLXS3k=; b=QVYs/qc/NWhTersiE9LJ5Lpv5zqYpM2sbg9tU/aquJO3wuKLm216E7PzWEZyq4Bg0U QqAAP03UlUwJPTpT2gAX5Qr+e6YV/eYxb07g/AHviOlzloEcdKg1rR41EDfa41dWiHiT PShmdo461DNT5Uq+SYeZRbqRBxsfy63f/5i1JDfbbF7VSr4RCSZ0dvVaWJeoebfNyj8G bZzt6qmkNfHnGkx0a7VizYEjju1POYu/+UPudRl3YfwGvs9/go4CVCNUGJ6SZmpkEHu0 Cm6MUsDCOsUMrpbocRx022tr6xdneyY5btHpjokIIslpVo7E7ktYDYSVzc90tAZH0LKB HccQ== X-Gm-Message-State: AOJu0YyF5STkJO98kMaGjbR8UBqSLNgAWH19c0ya4z1chl6PzyaDuj+n Fo77qS13v3FDGaCLAjnsvY2KV6rEwOy4n72NQD4Dy+x/EkUMuieYK4Ev X-Gm-Gg: ASbGncv4Qm0gm3hZHjq3AMoJeRc3PQkbBCwieZr0euwv+bFfnozFBsxQ+oE8vH7s5U2 bh3m7T75F1Hpv3zUYSfu7HMKb8VvVIacxHEiCNqkd9Jt/MHiO9TDsC5YSPasSpOfSahj5KJ0PqG 1RhS8x1UMRM5hEJwmcOyLZMxQVkIvUdauZn/5U0ajUo3PUOUE2oQXOEJv8a4TqMRw9ewNvMpfOB 2BCuPm26hVe8gGf0RSddUdNNkJAH9QWIr/vs504s9zlBcpq97RZupfrUI2j2Q3l1ArHNOh1itqt 0aSvqg0H3c6cboqYEoJdxFY1SYR0Nxcw/Psa2Tka4z3kZ7ieFAgOan6Des2VvnqhL6f8ENTsHn7 tvH0vbQ3pNJLLg/v2H4WvD3d4RgvoWAn7RYbEHodBq313ZqhihS/U1AuBGvGjwn/IP8vvwPHQ+d USgjr9U4wM8c+pz8NiaEU3Yg== X-Google-Smtp-Source: AGHT+IGbhc0S3X6dPlB7seS2+pnJjaGSpHwzcDZIhsNGveiFTUmus4w0s3aGwwVikC+8nGBxYSSqpg== X-Received: by 2002:a05:6a00:3cc6:b0:781:239d:f2da with SMTP id d2e1a72fcca58-7a220acb30cmr13209076b3a.31.1760927539349; Sun, 19 Oct 2025 19:32:19 -0700 (PDT) Received: from smtpclient.apple ([15.220.16.41]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7a2301108f8sm6829105b3a.66.2025.10.19.19.32.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Oct 2025 19:32:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Convert date and time colums to datetime Date: Sun, 19 Oct 2025 20:32:07 -0600 Message-Id: <3F3B9CFD-3901-4689-A38C-84CFA767D02E@gmail.com> References: Cc: pgsql-general@postgresql.org In-Reply-To: To: Rich Shepard X-Mailer: iPhone Mail (22G100) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 19, 2025, at 2:38=E2=80=AFPM, Rich Shepard wrote: >=20 > =EF=BB=BFOn Sun, 19 Oct 2025, Rob Sargent wrote: >=20 >> 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. >=20 > Rob, >=20 > 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. >=20 > Thanks, >=20 > Rich >=20 >=20 Definitely a datetime (single value) problem, imho=