Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm sort of the opposite of GP. Having worked with SQL Server the first 5-6 years I've transitioned to using Postgres more over the last 3-4 years and really prefer it. That said SQL has some nice features, off the top of more head:

* It's pivot/unpivot query syntax is a lot nicer than the comparable Postgres extension.

* The ability to define a clustered index for a table that's maintained automatically.

* The ability to define materialized views that are maintained automatically.

* The db engine can automatically use materialized views to accelerate queries matching the view definition.

* It has some really cool support around temporal tables. Not just defining them, but using them in queries. Like, there's a pretty simple query syntax that lets you join together multiple temporal tables and say, show me what the data looked like at this point in time, or show me how it changed during this time period.

The main problem with SQL Server IMO is that many of the cool features you discover are gated behind a SQL Server Enterprise license, and it's crazy expensive. Upwards of $10k per core per year, IIRC. The last time I looked at RDS instance prices I believe SQL Server Standard was about 4x more expensive than Postgres, and Enterprise about 8x more expensive.



    Editions    Open no-level price (US dollar)     Licensing model     Channel availability
    Enterprise  $15,123                             2 core pack         Volume licensing, hosting 
So it's like $7561.5 per core, but as usual you need to license all physical cores in the server[1] if running on the pOSE.

Of course MS heavily push for SA and while it's not useful for the most SMBs it has benefits like unlimited virtualization rights.

[0] https://www.microsoft.com/en-us/sql-server/sql-server-2022-p...

[1] https://download.microsoft.com/download/0/f/4/0f4c1b3c-cbc4-...

Edit: as a sysadmin the quite easy to configure default maintenance plans with backups is a godsend. It is still very awkward what you need reinvent the wheel (or use/buy a 3rd party product) to just backup databases on schedule in PG/My SQL.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: