Viewing profile — castorp
castorp
HN member- Joined
- Fri, Nov 22, 2019, 4:49 PM UTC
- HN karma
- 149
- Public activity
- 63 items
- HN profile
- View on Hacker News ↗
About castorp
No profile information was provided.
Recent public activity
-
comment
Comment #35821310
> I suspect that's a pretty non-standard/rarely-used feature though. If you learn SQL you likely won't encounter this Recursive common table expressions are part of the SQL standar…
-
comment
Comment #34178753
> PostgreSQL has built in support for UUIDv4 through the pgcrypto or the uuid-ossp extensions. Since Postgres 13 installing an extension is no longer necessary as gen_random_uuid()…
-
comment
Comment #33976970
Yes, it matters. Many Postgres features aren't supported on Redshift (set returning functions, indexes, ...) and many tools that work just fine with Postgres error out because Reds…
-
comment
Comment #33975727
> rather than Redshift Despite what the Amazon marketing is telling, Redshift is not really a "fork" of Postgres. To my knowledge they only used the SQL parser and the wire protoco…
-
comment
Comment #31874128
You need to use pg_dump from the new version, not from the old version.
-
comment
Comment #31401472
> It sounds like Russia might get declared a terrorist state soon. Lithuania has apparently already done that.
-
comment
Comment #30468886
I have been working with Oracle for more than 20 years now. I think I only had very few situations where an "index organized table" (=clustered index) was useful or actually provid…
-
comment
Comment #29795019
> Without dura, you use Ctrl-Z in your editor to get back to a good state. I just turn on "Local History" in my NetBeans IDE which creates a new version of the file each time I sav…
-
comment
Comment #29794988
You don't have to do that "manually". Postgres supports the conversion using the `at time zone` operator.
-
comment
Comment #29775096
Did you try Qwant? https://www.qwant.com/maps
-
comment
Comment #29648878
select extract(month from justify_interval(timestamp '2022-01-01' - timestamp '2021-11-01')) returns 2
-
comment
Comment #29648829
Well for "counting buckets" you can use `date_bin()` since Postgres 14 which groups the difference between timestamps into defined intervals.
-
comment
Comment #29648796
But the difference between 2021-01-01 and 2020-12-31 is only one day, not a year. It gets even strange for e.g. select DATEDIFF(year, '2021-12-01', '2022-01-01') which still return…
-
comment
Comment #29646450
> For example, find all users who have have been active at least 10 days. Well, then you only need to compare the difference of the timestamp (or date) values with an interval of 1…
-
comment
Comment #29646381
> No, for example, the datediff in years for New Year's Eve and New Year's Day should be 1 I don't understand the purpose of such a calculation. If you want to check if two dates (…
-
comment
Comment #29646362
The question is: what do you do with the result? If you e.g. want to check if two timestamps are more than a year apart you just compare the difference to an interval of 1 year.
-
comment
Comment #29646332
The "distance" between two dates seems quite useful. In Postgres there is no need for a datediff() function - you would just subtract the two dates: date '2021-01-01' - date '2020-…
-
comment
Comment #29646321
I never understood the need for a datediff function. In Postgres (or Oracle) you just subtract two timestamps and use the resulting interval. It's a different approach to the same …
-
comment
Comment #28490681
"hundreds" of concurrent connections isn't really a problem for Postgres. Several thousands are - at least up until now. V14 will improve this substantially.
-
comment
Comment #27398827
There about 10 issues logged with Bugzilla regarding this. All closed as "wontfix"
-
comment
Comment #27398822
Only helps until the next release. Then all customization options where you can turn off Proton will be removed.
-
comment
Comment #27361046
The new bookmark menus are simply terrible. The use much more space than before. I even have one that needs scrolling now. And it's not possible to use the "compact" layout anymore…
-
comment
Comment #26049664
You shouldn't see downvoting as a personal attack. It's simply a way to express disagreement with the statement. How else would one signal agreement or disagreement if not by up- o…
-
comment
Comment #25714229
Ages ago I installed a shareware product. And it also had a scrollable "terms and condition" screen (about 2 pages long) when starting it for the first time. When you clicked the "…
-
comment
Comment #25669259
So I should pay $50 dollar just to read one article? (And pay for a foreign currency transfer on top of that?) There is no option to read the article without signing up for one yea…