From: Tim Cross <theophilusx@gmail.com>
To: Ravi Krishna <srkrishna1@aol.com>
Cc: adrian.klaver@aklaver.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Oracle vs PG
Date: Wed, 24 Oct 2018 11:32:00 +1100
Message-ID: <87lg6okwvz.fsf@gmail.com> (raw)
In-Reply-To: <1519969091.2232047.1540337737856@mail.yahoo.com>
References: <F2FF46F6-1B5D-4B8C-955D-FCD40CDF4E38@aol.com>
<52fdf2eb-1fdc-5233-aa5f-75b33a88e8c1@aklaver.com>
<6DD461F9-7FF5-4A54-AB04-9507648D76CE@aol.com>
<60e0bcc4-342c-ce57-c319-125eda75b13b@aklaver.com>
<1519969091.2232047.1540337737856@mail.yahoo.com>
Ravi Krishna <srkrishna1@aol.com> writes:
>> Again, pretty much content-free. For all you know some application was
>> creating savepoints, needlessly:
>
>> https://www.postgresql.org/docs/10/static/sql-savepoint.html
>
> I have hardly used savepoints in any application, but if I understand it correctly, isn't it something which is typically used
> in a persistent connection. I wonder how it is applicable in a web based stateless application like Amazon.com, unless
> even web based application have database level state.
No, savepoints and persistent connections are not necessarily related.
Savepoints are really just a way of managing rollback segments. For
example, if you were doing a large number of inserts/updates, things can
become slow if the rollback segment grows really large. One way around
this is to set savepoints, which will allow you to commit more
frequently and prevent the rollback size from growing too large (there
are other benefits as well, such as allowing other transactions to see
partial changes sooner rather than not seeing any change until after a
long running insert/update has completed etc).
I think that article is really just about headline click bait and lacks
any real details. I'm not even convinced that comparison of Oracle and
PG really makes sense anyway - both databases have their pros and cons.
IMO Oracle is a very good database (though most of the 'add ons' are
less beneficial). However, it is extremely expensive, both to license
and to administer. For certain applications, it would be my first choice
(assuming available budget). However, I prefer PG for the majority of
what I need, partially due to the cost, but mainly because it is rock
solid and much, much easier to administer and sufficient for what I
need. As usual, it is more about requirements than brand and choosing
the right tool for the right job.
Tim
--
Tim Cross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: theophilusx@gmail.com, srkrishna1@aol.com, adrian.klaver@aklaver.com
Subject: Re: Oracle vs PG
In-Reply-To: <87lg6okwvz.fsf@gmail.com>
References: <F2FF46F6-1B5D-4B8C-955D-FCD40CDF4E38@aol.com> <52fdf2eb-1fdc-5233-aa5f-75b33a88e8c1@aklaver.com> <6DD461F9-7FF5-4A54-AB04-9507648D76CE@aol.com> <60e0bcc4-342c-ce57-c319-125eda75b13b@aklaver.com> <1519969091.2232047.1540337737856@mail.yahoo.com> <87lg6okwvz.fsf@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox