PostgreSQL vs. MS SQL
pg-versus-ms.com
PostgreSQL vs. MS SQL
1–10 of 106 posts
Re: PostgreSQL vs. MS SQL
#2A) Indexes disappeared without rhyme or reason. (This might have been a "too many cooks in the kitchen" thing, where someone restored from a backup and didn't tell anyone.)
B) In the default configuration provided by the php5-mssql package in Ubuntu, text fields were chopped at 255 characters.
C) Our Windows Server did updates, then came back up with a "you need to renew your license" lock that prevented any I/O and cost us half a day of productivity (on top of the licensing costs).
And of course, D) it screwed up the file encoding when we did the final export during the "migrate to PostgreSQL" step.
Incidentally, migrating our platform to PostgreSQL and kicking the tires was one of the last projects I completed at that job, and everyone was much happier for it.
Re: PostgreSQL vs. MS SQL
#3I too am biased towards PG. At one of my previous gigs, I had to develop a HTML5 mobile app around a MS SQL database (though eventually we migrated to PostgreSQL). Among the problems we ran into: A) Indexes disappeared without rhyme or reason. (This might have been a "too many cooks in the kitchen" thing, where someone restored from a backup and didn't tell anyone.) B) In the default configuration provided by the php…
b) i really wouldn't recommend hitting mssql from anything other than the home grown system.data.sqlclient built into .net.
c) there are best practices on when and how to install updates. this is not it.
d) that is totally a pain in the butt and something msft should probably figure out how to have a reasonable option for.
one, very legitimate gripe i have for mssql is the default lock levels on reads. not everything needs to be fully synchronized and having to litter queries with (nolock) feels like bad design.
one, very legitimate gripe i have for pg; no stored procedures. functions are not stored procedures. also multiple result sets for a single query, but i digress.
Re: PostgreSQL vs. MS SQL
#41) SQL Server Data Tools for complex schema management.
2) Graphical execution plans.
3) It's the database best supported by Entity Framework. If you know what IEnumerable is, and you know what IQueryable is, and you know what a leaky abstraction is, you can use EF to quickly start getting data in and out of SQL Server with very reasonable performance.
Re: PostgreSQL vs. MS SQL
#5Re: PostgreSQL vs. MS SQL
#6I too am biased towards PG. At one of my previous gigs, I had to develop a HTML5 mobile app around a MS SQL database (though eventually we migrated to PostgreSQL). Among the problems we ran into: A) Indexes disappeared without rhyme or reason. (This might have been a "too many cooks in the kitchen" thing, where someone restored from a backup and didn't tell anyone.) B) In the default configuration provided by the php…
Now, you say that you possibly had too many cooks in the kitchen. So perhaps your complaints are due to the other cooks, or maybe some of your complaints came to you second-hand. But here is my analysis of your complaints, having run SQL Server for a number of years:
A) Just doesn't happen. Index-related statements are transactional and ACID-compliant. (i.e.: you can, in a transaction, add, drop, and update triggers, indexes, entire tables, etc. along with data.) This has been the case since at least I've started using SQL Server with the 2005 release.
B) I don't know why this is the case with php5-mssql, but I would blame the authors of the package. varchar, nvarchar, text, etc fields all support > 255 characters.
C) I don't know of any version of SQL Server or Windows Server that does this. No Windows Server version "locks IO" on a license check failure (this would obviously cause huge problems with filesystem consistency). As far as I know, no SQL Server version does live license checking or phones home. I have no idea what your symptom was, but I suspect someone else broke something. A running SQL Server installation does not "stop", nor does it need the license to be renewed at any point. Cumulative and service pack updates don't do license checks either, as far as I know. In fact, an expired license doesn't affect anything, and probably even reflects a misunderstanding of how licensing works. If you purchased a license, even if you paid yearly for 2-3 years, your SQL Server license is good forever. Forever! New versions require software assurance, but you have to choose to install those manually, it's opt-in, not opt-out. Automatic updates should never break SQL Server.
D) Is it at all possible this was the migrate to PostgreSQL tool's fault? Because I've run weekly backups and restores of SQL Server databases for the past several versions for many years, and had no problem with a .bak file being corrupt.
Re: PostgreSQL vs. MS SQL
#7The emphasised part is incorrect, Postgres's text storage has a 1GB limit (that stands for CHAR, VARCHAR and TEXT which all use the same underlying mechanism): http://www.postgresql.org/docs/9.4/static/datatype-character...
> In any case, the longest possible character string that can be stored is about 1 GB.
Although note that this is 1GB, you have to take in account both multibyte characters and compression (which by default is enabled on text values of more than 2k, using LZ)
Re: PostgreSQL vs. MS SQL
#8I too am biased towards PG. At one of my previous gigs, I had to develop a HTML5 mobile app around a MS SQL database (though eventually we migrated to PostgreSQL). Among the problems we ran into: A) Indexes disappeared without rhyme or reason. (This might have been a "too many cooks in the kitchen" thing, where someone restored from a backup and didn't tell anyone.) B) In the default configuration provided by the php…
a) i can't say with 100% certainty, but with 99% certainty someone dropped the index. they don't just disappear. b) i really wouldn't recommend hitting mssql from anything other than the home grown system.data.sqlclient built into .net. c) there are best practices on when and how to install updates. this is not it. d) that is totally a pain in the butt and something msft should probably figure out how to have a reaso…
Re: PostgreSQL vs. MS SQL
#9Earlier quoted context omitted.
a) i can't say with 100% certainty, but with 99% certainty someone dropped the index. they don't just disappear. b) i really wouldn't recommend hitting mssql from anything other than the home grown system.data.sqlclient built into .net. c) there are best practices on when and how to install updates. this is not it. d) that is totally a pain in the butt and something msft should probably figure out how to have a reaso…
Genuine curiosity: what do you mean about functions not being stored procedures? What is it you want to be able to do with them that you can't in postgres?
the key difference is the multiple result sets with different schemas (which you can do with stored procedures but not with functions)
Re: PostgreSQL vs. MS SQL
#10I stopped reading after the very first bullet, and just skimmed through most of the titles.
First, you can import/export csv's. Hell all you need to do to export, is right click the view and hit export, then select .csv.
Second, you don't want such a simple installation, MSSQL has several options/packages/configurations. If you don't need it you turn it off, otherwise you will be charged a fee.
That being said, if you have chocolatey installed in powershell. It's also a one line command, and you can configure your own custom installation command.
choco install MsSqlServer2012Express
Third, I don't feel like correcting the rest of your mistakes.
I'm not shitting on Postgres, it's pretty awesome, but out of the box MSSQL is better. Especially when you have hundreds of severs running it.