Looking Forward to Postgres 19: It's About Time
1–10 of 44 posts
Re: Looking Forward to Postgres 19: It's About Time
#2Re: Looking Forward to Postgres 19: It's About Time
#3It never came to pass when we used Oracle, maybe now with Postgres I will finally have a chance at it.
Re: Looking Forward to Postgres 19: It's About Time
#4Re: Looking Forward to Postgres 19: It's About Time
#5Re: Looking Forward to Postgres 19: It's About Time
#6This question has been answerable in Dolt for years now.
Re: Looking Forward to Postgres 19: It's About Time
#7See https://dancol.org/dctv/index.xml
I still think there's a lot of value in first-class syntax for time queries. Splitting ranges like Postgres 19 does is a good first step, but there's also a lot of power in broadcasting over these ranges, combining them in various ways, and storing multiple, independent ranges in a single table.
Ignore the bit about active development: these days, it'd take more sense to add the operators I describe to Postgres and DuckDB than to make a numpy-based engine just to host the analysis. This work predates DuckDB, and it's reassuring that DuckDB (and now Postgres) are thinking along similar lines.
I'm also glad that in the intervening years "data lake"-style analysis has become more prominent. My ideal data processing pipeline consists of sourcing from raw data and pipelining views all the way to human-meaningful outputs. Materialization, if it occurs, is just an optimization.
Re: Looking Forward to Postgres 19: It's About Time
#8Why are they storing a time period (start and end date) in the first example? Why not just store the date when the price comes into effect? That would make both overlaps and time travel impossible without using any constraints.
Re: Looking Forward to Postgres 19: It's About Time
#9Why are they storing a time period (start and end date) in the first example? Why not just store the date when the price comes into effect? That would make both overlaps and time travel impossible without using any constraints.
Re: Looking Forward to Postgres 19: It's About Time
#10> Recently, a new type of question has entered the database arena: what did this data look like last Tuesday? This question has been answerable in Dolt for years now.
Say you have one time series with CPU-core task switches:
T=1 task=A T=3, task=B, T=5 task=A, ...
... and another of CPU frequency changes ...
T=2 freq_hz=800, T=5 freq_hz=1200, T=6 freq_hz=900
How, in SQL, do you express the question "How many CPU cycles did each task use?"? Try to do it with more complex examples. You'll tear your hair out.
Having worked on this sort of data analysis quite a lot, I'm strongly of the opinion that SQL needs syntax, not just table-valued functions, for expressing questions about timelines.