Comparing PostgreSQL and Oracle stability

Lists: pgsql-general
From: hyldgaard(at)hotmail(dot)com (Thomas Hyldgaard)
To: pgsql-general(at)postgresql(dot)org
Subject: Comparing PostgreSQL and Oracle stability
Date: 2002-07-02 12:59:50
Message-ID: 62b0a667.0207020459.6ad2c1b@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi,

I'm considering porting code from Oracle to PostgreSql. I'm looking
for opinions from people that are experienced with both PostgreSQL and
Oracle:

1) Is the stability better, equal or worse when comparing Oracle 9i?
2) Are there any performance issues to be aware of when comparing
PostgreSql an d Oracle (on the same hardware configuration) - eg. size
of table colums, count of records in tables (and indexes).
3) And how about the work for DB administrators - are things simpler
or more complicated?

Best regards
Thomas


From: Juan Jose Comellas <juanjo(at)comellas(dot)org>
To: hyldgaard(at)hotmail(dot)com (Thomas Hyldgaard)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-03 16:46:38
Message-ID: 200207031346.38675.juanjo@comellas.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

I am not terribly experienced on this matter, but we have implemented several
systems using Oracle 8.0.5, DB2 UDB 7.2 and using PostgreSQL 7.1.3. All of
them are running under Linux, and until this moment I have found that under
Linux, PostgreSQL is more stable than both Oracle 8.0.5 and DB2 7.2, is far
easier to administrate and the performance is very good. The most important
drawbacks we've encountered are:

1) The need to run VACUUM regularly (this is not much of an issue with
PostgreSQL 7.2.1 because it doesn't lock the tables), especially if you are
doing a lot of UPDATEs.

2) Postgres' query optimizer is not as smart as Oracle's or DB2's, so we
needed to write the queries in ways that would allow Postgres to optimize
them so that we could reach a performance similar to Oracle's. We found out
that Postgres does not handle SELECT ... IN ... queries very well, so we had
to rewrite them in ways that were not as straightforward.

On Tuesday 02 July 2002 09:59, Thomas Hyldgaard wrote:
> Hi,
>
> I'm considering porting code from Oracle to PostgreSql. I'm looking
> for opinions from people that are experienced with both PostgreSQL and
> Oracle:
>
> 1) Is the stability better, equal or worse when comparing Oracle 9i?
> 2) Are there any performance issues to be aware of when comparing
> PostgreSql an d Oracle (on the same hardware configuration) - eg. size
> of table colums, count of records in tables (and indexes).
> 3) And how about the work for DB administrators - are things simpler
> or more complicated?
>
> Best regards
> Thomas
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
Juan Jose Comellas
(juanjo(at)comellas(dot)org)


From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: "Thomas Hyldgaard" <hyldgaard(at)hotmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-03 18:30:24
Message-ID: NEBBLAAHGLEEPCGOBHDGAEBOFEAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Thomas-

My opinions are based on Oracle 8, which was the last version I used,
performance is a subjective guess-

-Performance is about the same.
-The only thing I've missed is point-in-time recovery.
-Stability is about the same.
-DBA work is about the same if you don't depend on a GUI.
-Support for postgreSQL is much faster. (A bit cheaper as well <grin>)

I haven't missed Oracle.

-Nick

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Thomas Hyldgaard
> Sent: Tuesday, July 02, 2002 8:00 AM
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] Comparing PostgreSQL and Oracle stability
>
>
> Hi,
>
> I'm considering porting code from Oracle to PostgreSql. I'm looking
> for opinions from people that are experienced with both PostgreSQL and
> Oracle:
>
> 1) Is the stability better, equal or worse when comparing Oracle 9i?
> 2) Are there any performance issues to be aware of when comparing
> PostgreSql an d Oracle (on the same hardware configuration) - eg. size
> of table colums, count of records in tables (and indexes).
> 3) And how about the work for DB administrators - are things simpler
> or more complicated?
>
> Best regards
> Thomas
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>


From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Thomas Hyldgaard <hyldgaard(at)hotmail(dot)com>
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-03 21:34:00
Message-ID: 3D236DC8.5020303@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> 3) And how about the work for DB administrators - are things simpler
> or more complicated?

Simpler. I tried a trial version of Oracle a long time ago and couldn't figure out how to
get it installed. With Postgres I just read the docs and was up in minutes.


From: Jeff Davis <list-pgsql-general(at)empires(dot)org>
To: hyldgaard(at)hotmail(dot)com (Thomas Hyldgaard), pgsql-general(at)postgresql(dot)org
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-04 09:18:14
Message-ID: 200207040218.14354.list-pgsql-general@empires.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> I'm considering porting code from Oracle to PostgreSql. I'm looking
> for opinions from people that are experienced with both PostgreSQL and
> Oracle:
>
> 1) Is the stability better, equal or worse when comparing Oracle 9i?
> 2) Are there any performance issues to be aware of when comparing
> PostgreSql an d Oracle (on the same hardware configuration) - eg. size
> of table colums, count of records in tables (and indexes).
> 3) And how about the work for DB administrators - are things simpler
> or more complicated?

First off, I don't have much experience with Oracle, but I have done a couple
things with it, and one of my colleagues has used it much more extensively.

1) stability - I have not had stability problems with a recent release of
postgresql. The developers sometimes mention potential problems, but I
haven't encountered one (at least after 7.1, before that I seem to remember a
couple minor issues). I haven't heard of any problems with oracle.

2) I can't provide you with any meaningful info about performance. I didn't do
any scientific performance comparison. One thing I can say, is that my
colleague needed to spend a lot of time giving hints to oracle because
(according to him) the planner was really bad and frequently made planning
errors.

3) Much easier to administrate postgres. I gave up trying to get oracle
working myself.

Regards,
Jeff


From: Jan Pruner <jan(at)pruner(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-04 10:30:42
Message-ID: 200207041230.42998.jan@pruner.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Support PostgreSQL in some way hierarchical query like Oracle does?
Select ... start with ... connect by ... ???

JP

On Thursday 04 July 2002 11:18, you wrote:
> > I'm considering porting code from Oracle to PostgreSql. I'm looking
> > for opinions from people that are experienced with both PostgreSQL and
> > Oracle:
> >
> > 1) Is the stability better, equal or worse when comparing Oracle 9i?
> > 2) Are there any performance issues to be aware of when comparing
> > PostgreSql an d Oracle (on the same hardware configuration) - eg. size
> > of table colums, count of records in tables (and indexes).
> > 3) And how about the work for DB administrators - are things simpler
> > or more complicated?
>
> First off, I don't have much experience with Oracle, but I have done a
> couple things with it, and one of my colleagues has used it much more
> extensively.
>
> 1) stability - I have not had stability problems with a recent release of
> postgresql. The developers sometimes mention potential problems, but I
> haven't encountered one (at least after 7.1, before that I seem to remember
> a couple minor issues). I haven't heard of any problems with oracle.
>
> 2) I can't provide you with any meaningful info about performance. I didn't
> do any scientific performance comparison. One thing I can say, is that my
> colleague needed to spend a lot of time giving hints to oracle because
> (according to him) the planner was really bad and frequently made planning
> errors.
>
> 3) Much easier to administrate postgres. I gave up trying to get oracle
> working myself.
>
> Regards,
> Jeff
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
Pruner Jan
jan(at)pruner(dot)cz
http://jan.pruner.cz/
-----------------------------
Only Robinson Crusoe had all his work done by Friday


From: snpe <snpe(at)snpe(dot)co(dot)yu>
To: Juan Jose Comellas <juanjo(at)comellas(dot)org>, hyldgaard(at)hotmail(dot)com (Thomas Hyldgaard)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-04 15:22:38
Message-ID: 200207041722.39059.snpe@snpe.co.yu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

I am porting code from Oracle to Postgresql, too.
I have missed :
- distributed database (select,delete,insert,update)
- tools for development screen (like forms in oracle) (for report I like php)

regards
haris peco
On Wednesday 03 July 2002 06:46 pm, Juan Jose Comellas wrote:
> I am not terribly experienced on this matter, but we have implemented
> several systems using Oracle 8.0.5, DB2 UDB 7.2 and using PostgreSQL 7.1.3.
> All of them are running under Linux, and until this moment I have found
> that under Linux, PostgreSQL is more stable than both Oracle 8.0.5 and DB2
> 7.2, is far easier to administrate and the performance is very good. The
> most important drawbacks we've encountered are:
>
> 1) The need to run VACUUM regularly (this is not much of an issue with
> PostgreSQL 7.2.1 because it doesn't lock the tables), especially if you are
> doing a lot of UPDATEs.
>
> 2) Postgres' query optimizer is not as smart as Oracle's or DB2's, so we
> needed to write the queries in ways that would allow Postgres to optimize
> them so that we could reach a performance similar to Oracle's. We found out
> that Postgres does not handle SELECT ... IN ... queries very well, so we
> had to rewrite them in ways that were not as straightforward.
>
> On Tuesday 02 July 2002 09:59, Thomas Hyldgaard wrote:
> > Hi,
> >
> > I'm considering porting code from Oracle to PostgreSql. I'm looking
> > for opinions from people that are experienced with both PostgreSQL and
> > Oracle:
> >
> > 1) Is the stability better, equal or worse when comparing Oracle 9i?
> > 2) Are there any performance issues to be aware of when comparing
> > PostgreSql an d Oracle (on the same hardware configuration) - eg. size
> > of table colums, count of records in tables (and indexes).
> > 3) And how about the work for DB administrators - are things simpler
> > or more complicated?
> >
> > Best regards
> > Thomas
> >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org


From: CoL <col(at)mportal(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Comparing PostgreSQL and Oracle stability
Date: 2002-07-05 12:13:23
Message-ID: ag42bu$i6q$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Once it was here, so I paste to you:)
Oracle:
with variables &TypNiv = 0 et &Niv = 0

select
sum(t01_caf) SCAF,
sum(t01_itm_cnt) SART
from T01_&DateData
start with T01_upr_lvl_typ = &TypNiv and T01_upr_lvl_nbr = &Niv
connect by prior T01_lvl_typ = T01_upr_lvl_typ and prior T01_lvl_nbr =
T01_upr_lvl_nbr

Postgres:
\set TypNiv 0
\set Niv 0

select
sum(t01_caf) as SCAF,
sum(t01_itm_cnt) as SCAF
from t01_20011231
where
strpos(t01_tree_sortkey,(select t01_tree_sortkey
from t01_20011231
where t01_upr_lvl_typ = :TypNiv
and t01_upr_lvl_nbr = :Niv))=1;

C.

Jan Pruner wrote:
> Support PostgreSQL in some way hierarchical query like Oracle does?
> Select ... start with ... connect by ... ???
>
> JP
>
> On Thursday 04 July 2002 11:18, you wrote:
>
>>>I'm considering porting code from Oracle to PostgreSql. I'm looking
>>>for opinions from people that are experienced with both PostgreSQL and
>>>Oracle:
>>>
>>>1) Is the stability better, equal or worse when comparing Oracle 9i?
>>>2) Are there any performance issues to be aware of when comparing
>>>PostgreSql an d Oracle (on the same hardware configuration) - eg. size
>>>of table colums, count of records in tables (and indexes).
>>>3) And how about the work for DB administrators - are things simpler
>>>or more complicated?
>>
>>First off, I don't have much experience with Oracle, but I have done a
>>couple things with it, and one of my colleagues has used it much more
>>extensively.
>>
>>1) stability - I have not had stability problems with a recent release of
>>postgresql. The developers sometimes mention potential problems, but I
>>haven't encountered one (at least after 7.1, before that I seem to rememb=
>
> er
>
>>a couple minor issues). I haven't heard of any problems with oracle.
>>
>>2) I can't provide you with any meaningful info about performance. I didn=
>
> 't
>
>>do any scientific performance comparison. One thing I can say, is that my
>>colleague needed to spend a lot of time giving hints to oracle because
>>(according to him) the planner was really bad and frequently made planning
>>errors.
>>
>>3) Much easier to administrate postgres. I gave up trying to get oracle
>>working myself.
>>
>>Regards,
>> Jeff
>>
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
> --=20
> Pruner Jan
> jan(at)pruner(dot)cz
> http://jan.pruner.cz/
> -----------------------------
> Only Robinson Crusoe had all his work done by Friday
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>