Basil Bourque <basil(dot)list(at)me(dot)com> writes:
> For a "timestamp with time zone" column, how do I find all rows where the value is within the beginning and ending of a single date?
If you compare a date to a timestamp, the date is taken to mean midnight
of its day. So you need something along the line of
WHERE timestampcol BETWEEN dateval AND dateval+1
> And I'm concerned about local date time. I want to find by the user's local beginning and end of the day, not UTC.
Well, you're not being too clear about what you need here, but in what
I suggest above, "midnight" will be interpreted according to the current
"timezone" setting.
regards, tom lane