I really like PostgreSQL ranges, but I've always been curious, if these are an extension or they are a part of the SQL standard? The “Range Types” page[1] doesn't seem to mention the standard at all, and appendix D.1, “Supported Features”, doesn't mention range types. The reason I'm curious is because may future SQL database implementations will most likely use the standard at least in some capacity, so it'd be nice…
Multiranges in Postgres
11–20 of 34 posts
Re: Multiranges in Postgres
#12Multiranges could be used to further optimise for storage of duplicate data (if a data pattern repeats at different intervals) but it's not a big enough margin for me yet.
Re: Multiranges in Postgres
#13I really like PostgreSQL ranges, but I've always been curious, if these are an extension or they are a part of the SQL standard? The “Range Types” page[1] doesn't seem to mention the standard at all, and appendix D.1, “Supported Features”, doesn't mention range types. The reason I'm curious is because may future SQL database implementations will most likely use the standard at least in some capacity, so it'd be nice…
Range types are not supported in SQL Server. You'd likely need columns for start and end to be compliant.
Re: Multiranges in Postgres
#14Earlier quoted context omitted.
Range types are not supported in SQL Server. You'd likely need columns for start and end to be compliant.
SQL Server/MSSQL is just yet another (relatively poor) implementation of the SQL standard with a very presumptuous name.
Re: Multiranges in Postgres
#15I really like PostgreSQL ranges, but I've always been curious, if these are an extension or they are a part of the SQL standard? The “Range Types” page[1] doesn't seem to mention the standard at all, and appendix D.1, “Supported Features”, doesn't mention range types. The reason I'm curious is because may future SQL database implementations will most likely use the standard at least in some capacity, so it'd be nice…
(The word ‘range’ appears once there, in “F404. Range variable for common column names”, but reading the English parts of https://github.com/dazuiba008/digoal_blog_fork/blob/master/2..., it’s clear that isn’t about range types)
Re: Multiranges in Postgres
#16What's the performance like to get multiranges from a million row column of unique integers, that has a few gaps in it.
(Also slightly unsorted, but obv can do that in query).
Re: Multiranges in Postgres
#17Earlier quoted context omitted.
SQL Server/MSSQL is just yet another (relatively poor) implementation of the SQL standard with a very presumptuous name.
Would you mind sharing concrete examples of SQL Server deviating from the standard ?
There was a website comparing the major RDBMSs to the standard with examples. I can not find it now but I found this:
https://en.wikipedia.org/wiki/SQL_compliance
Edit: this was it https://troels.arvin.dk/db/rdbms/
It's not updated though.
Re: Multiranges in Postgres
#18Re: Multiranges in Postgres
#19It’s also worth knowing that you can accelerate many sorts of range queries with a GIST index. This often ends up faster than using two separate columns.
Re: Multiranges in Postgres
#20Earlier quoted context omitted.
Range types are not supported in SQL Server. You'd likely need columns for start and end to be compliant.
SQL Server/MSSQL is just yet another (relatively poor) implementation of the SQL standard with a very presumptuous name.