by sgt · 11y ago · 0 comments
To my disappointment several members of my team have been championing Oracle recently though - presumably because it's a safer option and can be managed by others under an SLA.
How does one argue against this? With Postgres we're not going to get SLA's because we know it very well, but with Oracle we would. It's mostly perception management IMHO, and I'm mostly against it. What killer core features does Oracle have that Postgres doesn't?
While I don't really like Oracle as a company, there are some features that Oracle has and postgres don't, that can be important for production deployment:
- flashback
- partitioning that's much more mature
- merge /*+ parallel
- materialized views that refresh on commit
- and oracle is quite a bit quicker - especially with badly written queries
But those (except for optimizer) are all Oracle Enterprise features which means you're paying ridiculous money per-core for enterprise edition itself, and then you're paying ridiculous money for the features one by one.
There's mostly no reason to use Oracle Standard edition instead of postgres. And I have seen Oracle XE in producion and that's just sad.
EDIT: oh and I forgot - postgres has that stupid "we don't want to include optimization hints in the language so we use CTEs as optimization boundary" policy that the developers stuck on and refuse to change, which means you have to decide between readable code and performant code. Meh.
EnterpriseDB, Fujitsu, and others.
> presumably because it's a safer option
Spoken like people who have never dealt with Oracle licensing and compliance. "Safer" for values of "well, I guess we didn't need those millions in this year's budget anyway.
* empty string == NULL in oracle
* ROWNUM: it's kinda like a limit, but not
* DUAL: hah. postgres eat your heart out.
And of course there are business practice differences:
http://www.businessinsider.com.au/oracle-customer-explains-a...
... but tongue out of cheek, if you can afford it, Oracle has solutions for just about every database problem in just about every vertical domain. They have really good engineers, really good testing, and they're #1 for a reason
* empty string == NULL in oracle
Why would that be a feature? NULL, by definition is neither 0 [zero], nor an empty string. NULL is an undefined value (sort of like a division by 0)Personally I'd see this as a bug, not as a feature. But your mileage may vary.
I am not sure if I am more or less confused.
+1 for PostgreSQL on this one.
select *, row_number() over (order by id desc) as rownum
from stuff;
Window functions are really convenient. I'm not familiar enough with Oracle to say what the practical differences are, though.They will come back after speaking with people at very large banks (if they go to PgConf NY), very large insurance companies, and very large enterprise tech companies. All of them are moving more of their business into postgresql. Many of them are moving away from oracle.
They will change their perception very quickly.
Say what you want about enterprise software but Oracle is a beast... if you work for a company willing to shell out for it. That cost will seem sillier though Postgres closes the feature gap.
As for "killer features", the zero downtime version upgrades has always meant a lot to me.
Lots of third party applications that support Oracle and not Postgres is sadly the most common reason I see people deploying Oracle these days. Also Oracle used to be a lot better with larger databases (400+ TB or so), but I have no idea if that is still true.
There are multi petabyte Oracle RAC instances in existence, while on the other hand a 10TB+ PG is very large.
This is a first step in closing that gap. Some form of compression on block level would really help as well. For analytics columnar support will be needed to, and an in-memory option would be nice too.