Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZSuJ-0004xM-OJ for pgsql-general@arkaria.postgresql.org; Thu, 22 Apr 2021 06:33:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZSuG-0007iV-RH for pgsql-general@arkaria.postgresql.org; Thu, 22 Apr 2021 06:33:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZNEt-0000JN-Ha for pgsql-general@lists.postgresql.org; Thu, 22 Apr 2021 00:30:39 +0000 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZNEq-0006P7-Hq for pgsql-general@lists.postgresql.org; Thu, 22 Apr 2021 00:30:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1619051437; x=1650587437; h=to:cc:references:from:message-id:date:mime-version: in-reply-to:subject; bh=1kjbI1+IwoRq29TPMDyR1jT0U9yPK9/7Zbw2Huh3RL8=; b=WKE3KLKHtXteazHtt/uzDVQCbj64XKSkbz/TEpFo8mFV+FdbYi2rqlCE KHJcPagp5uw1sgT9teGK7HQVkzu18K4rdwS7M2mJ3WHeAru2wMkvcpvp1 EYyTfqKakLNNrF4HgExzGOro6FQKsrVLLoKC1gZrt6ztrSxx7fJp6eUs2 4=; X-IronPort-AV: E=Sophos;i="5.82,241,1613433600"; d="scan'208,217";a="107687849" Subject: Re: Oracle vs. PostgreSQL - a comment Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-6002.iad6.amazon.com with ESMTP; 22 Apr 2021 00:30:35 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com (Postfix) with ESMTPS id 7EA7EA1CF3; Thu, 22 Apr 2021 00:30:34 +0000 (UTC) Received: from EX13D18UWA002.ant.amazon.com (10.43.160.199) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Apr 2021 00:30:33 +0000 Received: from 186590ce269b.ant.amazon.com (10.43.160.209) by EX13D18UWA002.ant.amazon.com (10.43.160.199) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Apr 2021 00:30:33 +0000 To: Franck Pachot CC: References: <0959C81A-5B07-4D04-A6B1-57AA78A9A553@gmail.com> <20200601095835.GA1996@hjp.at> <974ab21a-013c-8dbc-18f5-575f1e356647@postgrespro.ru> <20200602183038.GY6680@tamriel.snowman.net> <72adcb8c-8f5d-2062-7669-878982cf8c4e@gmail.com> From: Jeremy Schneider Message-ID: <17d6bf1e-239a-3f87-3ef3-168aad6e824a@amazon.com> Date: Wed, 21 Apr 2021 17:30:33 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------A4BB43233668B3B7F1A38B94" Content-Language: en-US X-Originating-IP: [10.43.160.209] X-ClientProxiedBy: EX13D28UWB001.ant.amazon.com (10.43.161.98) To EX13D18UWA002.ant.amazon.com (10.43.160.199) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --------------A4BB43233668B3B7F1A38B94 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On 4/21/21 12:23, Franck Pachot wrote: > >> Did Oracle change this?  Last time I looked, I don't think Oracle > supported local redo in their multitenant architecture either. > Hi Jeremy, they are moving in this direction (project seems to be > called DGPDB internally). And what is interesting for this discussion > is that they initially had redo (and even undo) at instance level, but > moved this to PDB following what users were asking for: pdb level > flashback, pitr, switchover,...But it is hard to compare those needs > with PostgreSQL. Multiple db clusters in PG is lightweight and is the > right place to isolate (users, cgroups,...). Oracle CDB is too heavy > to have multiple on one host. And many isolation features is made at > PDB level (lockdown profiles, resource manager) It will be interesting to see if Oracle releases something publicly.  Personally I feel like the complexity of all the different options is starting to get a bit overwhelming... in-memory, sharding, flex clusters (remote ASM), pluggable DB, data guard, VPD, RAC... and now the idea of PDB-level redo for flashback/pitr/switchover that would still enable a single shared buffer cache. And of course we still have all the plumbing for shared servers, clustered objects, freelist-based space management, external clustering software, OS-level "copy" backups, basicfile LOBs, rollback segments, freelists, dictionary-managed extents... the rule-based optimizer might even still be there! And as a sufficiently grumpy old DBA, with no real justification at all, I remain a little leery of all that automatic memory management and automatic query tuning stuff...  ;) These aren't just minor features; many of these are pretty fundamental and significant architectural differences. The testing matrix is just incomprehensible... it's hard to be sure anymore that there's anyone else on the planet running an Oracle stack the same way you are. Especially with the proliferation of one-off patches. Which increases the risk that you'll be the first one to discover the bug that exists when PDB-level redo is used together with the manual rollback segments your ETL job has used for ages alongside your old backup script which makes OS-level copies.  [Just to make up an example combination.] I never did like being the first person to find a bug. Sometimes it's hard to find that right balance of offering enough choices/configurability versus offering the single solution which can easily be made pretty robust (and having users work around known limitations). -Jeremy -- Jeremy Schneider Database Engineer Amazon Web Services --------------A4BB43233668B3B7F1A38B94 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
On 4/21/21 12:23, Franck Pachot wrote:
>> Did Oracle change this?  Last time I looked, I don't think Oracle supported local redo in their multitenant architecture either.

Hi Jeremy, they are moving in this direction (project seems to be called DGPDB internally). And what is interesting for this discussion is that they initially had redo (and even undo) at instance level, but moved this to PDB following what users were asking for: pdb level flashback, pitr, switchover,...But it is hard to compare those needs with PostgreSQL. Multiple db clusters in PG is lightweight and is the right place to isolate (users, cgroups,...). Oracle CDB is too heavy to have multiple on one host. And many isolation features is made at PDB level (lockdown profiles, resource manager)

It will be interesting to see if Oracle releases something publicly.  Personally I feel like the complexity of all the different options is starting to get a bit overwhelming... in-memory, sharding, flex clusters (remote ASM), pluggable DB, data guard, VPD, RAC... and now the idea of PDB-level redo for flashback/pitr/switchover that would still enable a single shared buffer cache. And of course we still have all the plumbing for shared servers, clustered objects, freelist-based space management, external clustering software, OS-level "copy" backups, basicfile LOBs, rollback segments, freelists, dictionary-managed extents... the rule-based optimizer might even still be there! And as a sufficiently grumpy old DBA, with no real justification at all, I remain a little leery of all that automatic memory management and automatic query tuning stuff...  ;)

These aren't just minor features; many of these are pretty fundamental and significant architectural differences. The testing matrix is just incomprehensible... it's hard to be sure anymore that there's anyone else on the planet running an Oracle stack the same way you are. Especially with the proliferation of one-off patches. Which increases the risk that you'll be the first one to discover the bug that exists when PDB-level redo is used together with the manual rollback segments your ETL job has used for ages alongside your old backup script which makes OS-level copies.  [Just to make up an example combination.] I never did like being the first person to find a bug.

Sometimes it's hard to find that right balance of offering enough choices/configurability versus offering the single solution which can easily be made pretty robust (and having users work around known limitations).

-Jeremy


-- 
Jeremy Schneider
Database Engineer
Amazon Web Services
--------------A4BB43233668B3B7F1A38B94--