Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gF75q-0006ZM-Qo for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 00:32:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gF75n-0006lG-Kd for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 00:32:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gF75n-0006l9-BI for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 00:32:11 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gF75k-0006pr-AO for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 00:32:10 +0000 Received: by mail-pf1-x42e.google.com with SMTP id 22-v6so1526280pfz.0 for ; Tue, 23 Oct 2018 17:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=j+ZMtMjUOgv9uGJargYp5FgBG06RCqath/4u/zUXnpc=; b=lwWL8p3zo1fV0mUkAJdRPfiCWujjVSoztT2u27xieU/nLeBFxe+2Gn9sUMXwYYFudK YUmTh0TEarqnu6S6cpuv29HVosvWxPvlwaYcRYvOEhbE8sLTFv+wbyZDi5AEaXg5yojW Bya+yFQwHBLT1H0ZLDBHrk7hbOlQOs8Jamnh6D+YRoLJnHnu1m+LHkZp9Rmx1B6qeJ2h 5i+mpsUNnieH+YhydZ3xWQ6gc1b9z41FAlVDIuFL6GPDdKUlgqoIrEQs9pEDhdC8Icez P4iL4OjlaOzqHFtWjKFJ6WRAE/Oo1kPQtf9D7dx7wOKCPnzPO/N/7qhgZ4lbYImelhAV lAYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=j+ZMtMjUOgv9uGJargYp5FgBG06RCqath/4u/zUXnpc=; b=EK9Z1QW9TecBzad45wmUsWPKJdbW8djAozwsNwGl1PLyzl64nY2RJqy8mQFpnA3hpe BX3H68IdVEoh/P2RoRySyxYHTxQ+WX2pUVp3Y9qo5cgIPSLk/Vv7rR19oB70tVGVk5WJ utx8xorZnolwFg4QB7Wi39FuJdj40XFZ9XGTU1gtM7dEkihKeyr/2srIsKTTln951jc4 rs5yXPgZcKbxhjojUXyQDjbkjyqenl2GtoFRYQ3/pMCXXT8TcaVrnWL7Dg5tTrkuVlva 0Q9i7mCxXV0OiWc/MSP18QaebXr1JvDPXj+DYsJ1pmGQ+i7H0c9lnswAGCyCUf2opWmo ohyg== X-Gm-Message-State: AGRZ1gJQorZTNla1IT+JxE3RLXWocqMbU0jQKvMYNsTa8tkQJkOI+eBg PsHk/YJfWWCiUsQrQuVXBctW1nbF36k= X-Google-Smtp-Source: AJdET5f+x5Q/CJ+KDw+i0igts+2SxR1+OZYYZc06mpkrNBtaud6cKXROWGfH8gFq5Lu1PZ7kIRhAjg== X-Received: by 2002:aa7:8598:: with SMTP id w24-v6mr453818pfn.77.1540341125847; Tue, 23 Oct 2018 17:32:05 -0700 (PDT) Received: from tim-desktop (2001-44b8-31f2-bb00-a83e-1b79-3d41-ef1e.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:a83e:1b79:3d41:ef1e]) by smtp.gmail.com with ESMTPSA id 64-v6sm3233537pgb.74.2018.10.23.17.32.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 17:32:05 -0700 (PDT) References: <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> User-agent: mu4e 0.9.18; emacs 26.1 From: Tim Cross To: Ravi Krishna Cc: adrian.klaver@aklaver.com, pgsql-general@lists.postgresql.org Subject: Re: Oracle vs PG In-reply-to: <1519969091.2232047.1540337737856@mail.yahoo.com> Date: Wed, 24 Oct 2018 11:32:00 +1100 Message-ID: <87lg6okwvz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ravi Krishna 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