public inbox for [email protected]
help / color / mirror / Atom feedRe: Convert date and time colums to datetime
2+ messages / 2 participants
[nested] [flat]
* Re: Convert date and time colums to datetime
@ 2025-10-19 19:40 Rob Sargent <[email protected]>
2025-10-19 20:38 ` Re: Convert date and time colums to datetime Rich Shepard <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Rob Sargent @ 2025-10-19 19:40 UTC (permalink / raw)
To: Rich Shepard <[email protected]>; +Cc: pgsql-general
> On Oct 19, 2025, at 1:08 PM, Rich Shepard <[email protected]> wrote:
>
> On Sun, 19 Oct 2025, Laurenz Albe wrote:
>
>> That depends on what you do with the table.
>
> Laurenz,
>
> That makes sense.
>
>> Are your SQL statements simple and natural with the current design?
>> Then stick with what you have now.
>
> That's what I'm going to do. I was curious when a timestamp column was more
> efficient, or otherwise preferred, since only a couple of my databases have
> a table with both date and time. And neither has many rows, but one could be
> quite large some time in the future.
>
> Thanks very much,
>
> Rich
>
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.
>
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Convert date and time colums to datetime
2025-10-19 19:40 Re: Convert date and time colums to datetime Rob Sargent <[email protected]>
@ 2025-10-19 20:38 ` Rich Shepard <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Rich Shepard @ 2025-10-19 20:38 UTC (permalink / raw)
To: pgsql-general
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-10-19 20:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-10-19 19:40 Re: Convert date and time colums to datetime Rob Sargent <[email protected]>
2025-10-19 20:38 ` Rich Shepard <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox