SQL
Range Functions
The `generate_subscripts(arr, dim)` function generates indexes along the `dim`th dimension of array `arr`.  
```sql
SELECT generate_subscripts([4, 5, 6], 1) AS i;
```  
| i |
|--:|
| 1 |
| 2 |
| 3 |  
#### Date Ranges {#docs:sql:functions:list::date-ranges}  
Date ranges are also supported for `TIMESTAMP` and `TIMESTAMP WITH TIME ZONE` values.
Note that for these types, the `stop` and `step` arguments have to be specified explicitly (a default value is not provided).