Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Postgresql vs Oracle [closed]

Well, the subject suggests the question:

  1. Oracle has a good support, so has enterpriseDB
  2. Huge amount of data can be easily managed by Oracle, Specs of PostgreSql suggest the same
  3. Feature wise I'm not sure, but reading on internet about both the DBs result in a tie

I wonder now, why oracle is more popular.

Which DB should be considered (leave the license/money thing) for a website which should be scaleable and may have large number of active users (lets say 10,000 users online).

I'm not looking for anything like Cassandra, mongo DB etc...

like image 704
Mayank Avatar asked May 12 '11 09:05

Mayank


People also ask

What is the advantage of PostgreSQL over Oracle?

While both solutions are quite capable in this category, PostgreSQL possesses the advantage due to its open-source characteristics. Not only is it much lighter than Oracle, you also don't have to fork out more cash to expand your infrastructure. PostgreSQL is completely capable of accommodating any volume of data.

Is Oracle faster than Postgres?

Global performance results show that Oracle can improve 7% performance with indexes and PostgreSQL 91%. When comparing the results of Oracle with PostgreSQL, no indexes, Oracle/PostgreSQL is 64% faster, and with indexes, PostgreSQL/Oracle is 75% faster.

Is PostgreSQL outdated?

The PostgreSQL Global Development Group supports a major version for 5 years after its initial release. After its five year anniversary, a major version will have one last minor release containing any fixes and will be considered end-of-life (EOL) and no longer supported.

Does Postgres replace Oracle?

PostgreSQL is by no means a drop-in replacement for Oracle's database, but a developer or DBA that is familiar with Oracle will find PostgreSQL similar.


1 Answers

My opinion is that PostgreSQL is very close to Oracle, especially with the upcoming 9.1 which offers an alternative to Oracle's DataGuard.

On the SQL Level there are really head-to-head, not much difference (with Postgres having actually more "little helpers" and features that make life a lot easier).

Things where Oracle offers still more features:

  • Materialized views (available since Postgres 9.3, but Postgres still has no incremental refresh or query rewrite)
  • Flashback queries and flashback archives (they are really cool)
  • Index only scans (available since Postgres 9.2, but not as efficient as Oracle's implementation in my experience)
  • transaction control in stored procedures (there will be support for that in the upcoming Postgres 11, but not as complete as in Oracle)
  • Index organized tables (aka "clustered indexes")
  • ASH and AWR reports (Postgres 9.6 added the infrastructure to have something like that in the future)
  • parallel queries
    Postgres 9.6 added some basic ability to run queries in parallel, Postgres 10 improved that even more and Postgres 11 will even be able to use it for things like create table as
  • parallel DML
  • Changing tables that are used in views (e.g. drop a column)

As much as I like PostgreSQL one thing that can be really annoying is configuring (auto)vacuum to cope with high write traffic.

like image 67
a_horse_with_no_name Avatar answered Sep 30 '22 14:09

a_horse_with_no_name