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 1jgbup-0003nq-Js for pgsql-general@arkaria.postgresql.org; Wed, 03 Jun 2020 22:31:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jgbuo-0008Bl-EC for pgsql-general@arkaria.postgresql.org; Wed, 03 Jun 2020 22:31:18 +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 1jgbun-0008Be-Dn for pgsql-general@lists.postgresql.org; Wed, 03 Jun 2020 22:31:18 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgbug-0000J9-DL for pgsql-general@lists.postgresql.org; Wed, 03 Jun 2020 22:31:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 67CA5451; Wed, 3 Jun 2020 18:31:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 03 Jun 2020 18:31:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=W GMgQxFcshFm2NMhJlJsnMklBWEIwzV7eTF01/oQwf8=; b=Gn0MDynSC7b0KW1kC ++XQnL6o6iWxQPJpFq7ho5DHiZzKWSv9io09lz4stohYRhOOe7tKAWfEehuxCZyF aGothoORmcyN1+APfH0HvLn9L9D0Sw0SpBNfPzh5Ej8N815JLSBUrlVFRfcFKOOg jdzI4xoiSr1P2yzSivnNT1Udu12B6fye4vB8LRQcNKn15PIhJu/LoJITi21ja+Ls uFRmj6Z3GZ8MFDgZgetFb/qtXFS7Q9hMCV1z26/DzZhd4Wlk5ix38pCgQr6bCHgP 0A5C7N+VoyVm3O3WNfgPbOJ/GvL3JLV3yzR+MGL15si7Skg/57JLuOMr3Bvyu52i s9njg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=WGMgQxFcshFm2NMhJlJsnMklBWEIwzV7eTF01/oQw f8=; b=APqFMtcuDjHqIZMeM98eUWgSmz9YhOtbvPB4bdVqkGlJb5sC5Rr7hsBd7 0HS5vwDSkKwAX+LuIP+kGaJDGZO5uLdaZfWy3RPkgLRBpdx4tKsrTnaA8pu0eDqT QLr5Za4B3OSfuNbF6Nd0qYWEy7Fr+VCPASg0sAxOTcAX8789oAfsfFmTcXtesJnI R+IYyIF5wVvSCZLeVFBuCR05tU4N3vTencEE8JSZ1WakmPQDcVeTJHfEwSgSSWtk EWS6/ep8n6EO7XkkUuLgtRMs5efDPaG3WykGk/OTbzjHLQBss5r3bj40C1u6xJyw N/EKkHOsLXhOcNGyvSanQYYVsojrg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudegtddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeekgedthfeuvefhvdejffetleevheefieeuhfdvtdfh teeuvdetveejjeeujeefkeenucffohhmrghinhepmhihshhqlhdrtghomhdpphhoshhtgh hrvghsqhhlrdhorhhgnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 11A1C30614FA; Wed, 3 Jun 2020 18:31:06 -0400 (EDT) Subject: Re: Oracle vs. PostgreSQL - a comment on Mysql To: Martin Mueller , Andreas Joseph Krogh , Chris Travers Cc: "pgsql-generallists.postgresql.org" References: <3A33195B-6B00-4C89-BFBE-1E43C5F07FDB@northwestern.edu> From: Adrian Klaver Message-ID: <6a630f0d-4bed-343d-701a-29a0ab1df904@aklaver.com> Date: Wed, 3 Jun 2020 15:31:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <3A33195B-6B00-4C89-BFBE-1E43C5F07FDB@northwestern.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/3/20 3:21 PM, Martin Mueller wrote: > On the topic of what other databases do better: I much prefer Postgres > to Mysql because it has better string functions and better as well as > very courteous error messages. But MySQL has one feature that sometimes > makes me want to return it: it stores the most important metadata about > tables in a Mysql table that can be queried as if it were just another > table.  That is a really feature. I makes it very easy to look for a > table that you edited most recently, including a lot of other things. With a lot of caveats: https://dev.mysql.com/doc/refman/8.0/en/show-table-status.html " Update_time When the data file was last updated. For some storage engines, this value is NULL. For example, InnoDB stores multiple tables in its system tablespace and the data file timestamp does not apply. Even with file-per-table mode with each InnoDB table in a separate .ibd file, change buffering can delay the write to the data file, so the file modification time is different from the time of the last insert, update, or delete. For MyISAM, the data file timestamp is used; however, on Windows the timestamp is not updated by updates, so the value is inaccurate. Update_time displays a timestamp value for the last UPDATE, INSERT, or DELETE performed on InnoDB tables that are not partitioned. For MVCC, the timestamp value reflects the COMMIT time, which is considered the last update time. Timestamps are not persisted when the server is restarted or when the table is evicted from the InnoDB data dictionary cache. " What are the lot of other things? My guess is they can be found in information_schema.*. > > Why doesn’t Postgres have that feature? Or is there a different and > equally easy way of getting at these things that I am just missing? > > *From: *Andreas Joseph Krogh > *Date: *Wednesday, June 3, 2020 at 12:54 PM > *To: *Chris Travers > *Cc: *"pgsql-generallists.postgresql.org" > > *Subject: *Re: Oracle vs. PostgreSQL - a comment > > På onsdag 03. juni 2020 kl. 20:07:24, skrev Chris Travers > >: > > [...] > > Regardless of what Oracle does, I agree this would be a huge > step in the right direction for pg-DBAs. > > I have absolutely no clue about how much work is required etc., > but I think it's kind of strange that no companies have invested > in making this happen. > > I manage database clusters where the number of databases is a reason > not to do logical replication based upgrades, where pg_upgrade is > far preferred instead. > > If this were to be the case, I would be very concerned that a bunch > of things would have to change: > > 1.  Shared catalogs would have txid problems unless you stay with > global txids and then how do local wal streams work there? > > 2.  Possibility that suddenly streaming replication has the > possibility of different databases having different amounts of lag > > 3.  Problems with io management on WAL on high throughput systems (I > have systems where a db cluster generates 10-20TB of WAL per day) > > So I am not at all sure this would be a step in the right direction > or worth the work. > > I agree these are all technical issues, but nevertheless - > "implementation details", which DBAs don't care about. What's important > from a DBA's perspective is not whether WAL is cluster-wide or > database-wide, but whether it's possible to manage backups/PITR/restores > of individual databases in a more convenient matter, which other > RDBMS-vendors seem to provide. > > I love PG, have been using it professionally since 6.5, and our company > depends on it, but there are things other RDBMS-vendors do better... > > -- > Andreas Joseph Krogh > -- Adrian Klaver adrian.klaver@aklaver.com