Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTAto-0000JQ-Fu for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 19:58:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTAtn-0000Zm-1U for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 19:58: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTAtm-0000Ze-OC for pgsql-hackers@lists.postgresql.org; Tue, 21 May 2019 19:58:10 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTAtd-00009w-BW for pgsql-hackers@postgresql.org; Tue, 21 May 2019 19:58:08 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id B8EA9111AB; Tue, 21 May 2019 15:57:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 21 May 2019 15:57:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= from:to:cc:subject:in-reply-to:reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= BTJIpzXH9YfxyFM20o9hRUcBattBxYWh2uKbLmWcat8=; b=VQEtVsoHWSgNK/Yi p3LohtXYu1ou8t58HzT8PZU1vvtBscoAQoxAulTTUoF8knJGZ8+L9rMb4eu8xE78 8EdK4AD1gPJ8kaVZd4Vy9gdMxMGaAPhg71GGJVFTgEunxmhxv/jigyqFnpqziDat hc9fs2VE/j6Q9hdRbD32IlEUirHoikQ8RFN5aaBmANG+fkmidky1tAHa+Ra1eKkt 3sVITpalg1uFH/Rm89BOCiyg/RT3/eUa1Yb4ivUbWFqZfD87csZDgNfl+YmfmmSh d4Lrhngj6NFwtKyxZVe628Pi3VkUx9OoBax80r9S2L24RUmN05MrETh24SgNZG/7 rNyy5g== 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:reply-to:subject :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=BTJIpzXH9YfxyFM20o9hRUcBattBxYWh2uKbLmWcat8=; b=SqeoQfcF fQN0YFul3pBPOFzsivtjWxSisOVLuDD3p4Iabn9KE/b/tpVZX3bmJsUGi+9m54+9 gI3g64Gu65hAvQmSKEGR8H5lizMAYsi+SHME7eJO1cEHmXXVEXlPXFxsh0zQxE4i RpTn8wLTGjZJP3ohumXkTLUMu/Ji1BNeJ/NGanyVA7UG0WhRdZO5X2axEh3EkU1k gf440JJ0Leu2UXFAn9h0nq7SIBg/LRceeANJsOjGdqg2MO3xTEgehZfoh2vMTfo+ Et/Mze9kMGqS8OYSlTf3UbNG+c0nn8t2lpZSApGfW3HO1C5jwwxXFd0uslvVkQu6 4hLCmHnSYIVkAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddutddgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdeimdenucfjughrpefhvffujghrfffkgggtgfesthhqredttddt jeenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrg iivghlrdguvgeqnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhdpmhho mhhjihgrnhdruhhspdgrnhgrlhihiigvrdhnohenucfkphepleekrddvuddtrddugedtrd dujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghl rdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id A84BF80062; Tue, 21 May 2019 15:57:57 -0400 (EDT) From: Andres Freund To: Bruce Momjian Cc: Andrew Gierth , Emre Hasegeli , Tomas Vondra , Peter Geoghegan , Alexander Korotkov , Heikki Linnakangas , Peter Eisentraut , Tom Lane , Surafel Temesgen , PostgreSQL-development Subject: Re: PG 12 draft release notes In-Reply-To: <20190521194734.tllkyg4akjj4txbb@momjian.us> Reply-To: Date: Tue, 21 May 2019 12:57:56 -0700 Message-ID: <87k1ejbmwr.fsf@alap4.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-05-21 15:47:34 -0400, Bruce Momjian wrote: > On Mon, May 20, 2019 at 03:17:19PM -0700, Andres Freund wrote: > > Hi, > >=20 > > Note that I've added a few questions to individuals involved with > > specific points. If you're in the To: list, please search for your name. > >=20 > >=20 > > On 2019-05-11 16:33:24 -0400, Bruce Momjian wrote: > > > I have posted a draft copy of the PG 12 release notes here: > > > > > > http://momjian.us/pgsql_docs/release-12.html > > > They are committed to git. > >=20 > > Thanks! > >=20 > > Migration to Version 12 > >=20 > > There's a number of features in the compat section that are more general > > improvements with a side of incompatibility. Won't it be confusing to > > e.g. have have the ryu floating point conversion speedups in the compat > > section, but not in the "General Performance" section? >=20 > Yes, it can be. What I did with the btree item was to split out the max > length change with the larger changes. We can do the same for other > items. As you rightly stated, it is for cases where the incompatibility > is minor compared to the change. Do you have a list of the ones that > need this treatment? I was concretely thinking of: - floating point output changes, which are primarily about performance - recovery.conf changes where I'd merge: - Do not allow multiple different recovery_target specificatios - Allow some recovery parameters to be changed with reload - Cause recovery to advance to the latest timeline by default - Add an explicit value of current for guc-recovery-target-time into on entry on the feature side. After having to move recovery settings to a different file, disallowing multiple targets isn't really a separate config break imo. And all the other changes are also fallout from the recovery.conf GUCification. > > > > Remove the special behavior of > linkend=3D"datatype-oid">OID columns (Andres Freund, > > John Naylor) > > > >=20 > > Should we mention that tables with OIDs have to have their oids removed > > before they can be upgraded? >=20 > Uh, is that true? pg_upgrade? pg_dump? Yes. > > > > Refactor geometric > > functions and operators (Emre Hasegeli) > > > >=20 > > > > This could lead to more accurate, but slightly different, results > > from previous releases. > > > > > > > > > >=20 > > > > Restructure geometric > > types to handle NaN, underflow, overflow and division by > > zero more consistently (Emre Hasegeli) > > > > > >=20 > > > > > >=20 > > > > Improve behavior and error reporting for the > linkend=3D"datatype-geometric">line data type (Emre Hasege= li) > > > > > >=20 > > Is that sufficient explanation? Feels like we need to expand a bit > > more. In particular, is it possible that a subset of the changes here > > require reindexing? > >=20 > > Also, aren't three different entries a bit too much? >=20 > The 'line' item related to more errors than just the ones listed for the > geometric data types, so I was not clear how to do that as a single > entry. I think there is a much larger compatibility breakage > possibility with 'line'. >=20 > > > > > >=20 > > > > Improve speed of btree index insertions (Peter Geoghegan, > > Alexander Korotkov) > > > >=20 > > > > The new code improves the space-efficiency of page splits, > > reduces locking overhead, and gives better performance for > > UPDATEs and DELETEs on > > indexes with many duplicates. > > > > > >=20 > > > > > >=20 > > > > Have new btree indexes sort duplicate index entries in heap-sto= rage > > order (Peter Geoghegan, Heikki Linnakangas) > > > >=20 > > > > Indexes pg_upgraded from previous > > releases will not have this ordering. > > > > > >=20 > > I'm not sure that the grouping here is quite right. And the second entry > > probably should have some explanation about the benefits? >=20 > Agreed. >=20 > > > > > >=20 > > > > Reduce locking requirements for index renaming (Peter Eisentrau= t) > > > > > >=20 > > Should we specify the newly required lock level? Because it's quire > > relevant for users what exactly they're now able to do concurrently in > > operation? >=20 > Sure. >=20 > > > > > >=20 > > > > Add support for function > > selectivity (Tom Lane) > > > > > >=20 > > Hm, that message doesn't seem like an accurate description of that > > commit (if anything it's a391ff3c?). Given that it all requires C > > hackery, perhaps we ought to move it to the source code section? And > > isn't the most important part of this set of changes > >=20 > > commit 74dfe58a5927b22c744b29534e67bfdd203ac028 > > Author: Tom Lane > > Date: 2019-02-11 21:26:08 -0500 > >=20 > > Allow extensions to generate lossy index conditions. >=20 > Uh, I missed that as an important item. Can someone give me some text? >=20 > > > > > >=20 > > > > Greatly reduce memory consumption of > > and function calls (Andres Freund, Tomas Vondra, Tom Lane) > > > > > >=20 > > Grouping these three changes together makes no sense to me. > >=20 > > I think the first commit just ought not to be mentioned separately, it's > > just a fix for a memory leak in 31f3817402, essentially a 12 only bugfi= x? >=20 > Oh, I was not aware of that. >=20=20 > > The second commit is about position() etc, which seems not to match that > > description either? >=20 > Ugh. >=20 > > The third is probably more appropriate to be in the source code > > section. While it does speed up function calls a bit (in particular > > plpgsql which is very function call heavy), it also is a breaking change > > for some external code? Not sure why Tom is listed with this entry? >=20 > The order of names is just a guess when multiple commits are merged --- > this needs help. >=20 > > > > > >=20 > > > > Improve search performance for multi-byte characters (Heikki > > Linnakangas) > > > > > >=20 > > That's the second reference to the commit. I suspect this is much better > > separate, so I'd just remove it from above. >=20 > Done. >=20 > > > > > >=20 > > > > Allow TOAST<= /link> > > values to be minimally decompressed (Paul Ramsey) > > > >=20 > > I'd s/minimal/partial/ - I don't think the code guarantees anything > > about it being minimal? And "minimally decompressed" also is somewhat > > confusing, because it sounds like it's about the compression quality > > rather than only decompressing part of the data. >=20 > It is confusing. Is "partially decompressed" better? >=20 > > > > > >=20 > > > > Prevent from requesting a lock= on > > tables for which it lacks permission (Micha=C3=ABl Paquier) > > > >=20 > > > > This prevents unauthorized locking delays. > > > > > >=20 > > > > > >=20 > > > > Prevent VACUUM and ANALYZE > > from requesting a lock on tables for which it lacks permission > > (Micha=C3=ABl Paquier) > > > >=20 > > > > This prevents unauthorized locking delays. > > > > > >=20 > >=20 > > I don't think this should be in the <acronym>Authentication</acr= onym> > > section. >=20 > I put it in that section since I thought the motivation was to prevent > people from locking up connecting to the database if someone has a > pending VACUUM/ANALYZE. No? >=20 > > Also perhaps, s/it/the user/, or "the caller"? >=20 > Agreed, "the user". >=20 > > > > > >=20 > > > > Reduce the default value of > linkend=3D"guc-autovacuum-vacuum-cost-delay"/> to 2ms (Tom Lane) > > > > > >=20 > > I think this needs to explain that this can increase autovacuum's IO > > throughput considerably. >=20 > Uh, well, do we normally document the effect of a change like this? It > will cause vacuum to be more agressive, and increase I/O? Do we want to > re-educate on what this paramater does? >=20 > > > > > >=20 > > > > Allow to specify > > sub-millisecond delays (Tom Lane) > > > >=20 > > > > Floating-point values can also now be specified. > > > > > >=20 > > And this should be merged with the previous entry? >=20 > Uh, I thought the change of default and its range were different enough > that combining them would add confusion. >=20 > > > > > >=20 > > > > Allow time-based server variables to use > linkend=3D"config-setting">micro-seconds (us) (Tom Lane) > > > > > >=20 > > > > > >=20 > > > > Allow fractional input for integer server variables (Tom Lane) > > > >=20 > > > > For example, SET work_mem =3D '30.1GB'. > > > > > >=20 > > > > > >=20 > > > > Allow units to be specified for floating-point server variables > > (Tom Lane) > > > > > >=20 > > Can't we combine these? Seems excessively detailed in comparison to the > > rest of the entries. >=20 > See above. It seems confusing to combine them but please propose text > if you think it is possible. >=20 > > > > > >=20 > > > > Add an explicit value of current for > linkend=3D"guc-recovery-target-time"/> (Peter Eisentraut) > > > > > >=20 > > Seems like this should be combined with the earlier "Cause recovery to > > advance to the latest timeline by default" entry. >=20 > The odd part is that the old default was 'current' but there was no way > to specify current --- you just specified nothing. That seemed > confusing enough that having them combined would add confusion, but if > you have some suggested text? >=20 > > > > > >=20 > > > > Add support for generated > > columns (Peter Eisentraut) > > > >=20 > > > > Rather than storing a value only at row creation time, generated > > columns are also modified during updates, and can reference other > > table columns. > > > > > >=20 > > I find this description confusing. How about cribbing from the commit? > > Roughly like > >=20 > > This allows creating columns that are computed from expressions, > > including references to other columns in the same table, rather than > > having to be specified by the inserter/updater. > >=20 > > Think we also ought to mention that this is only stored generated > > columns, given that the SQL feature also includes virtual columns? >=20 > OK, new text is: >=20 > The content of generated columns are computed from expressions > (including references to other columns in the same table) > rather than being specified by INSERT or > UPDATE commands. > >=20 > > > > > >=20 > > > > Add and CREATE > > TABLE options to prevent VACUUM > > from truncating trailing empty pages (Tsunakawa Takayuki) > > > >=20 > > > > The options are vacuum_truncate and > > toast.vacuum_truncate. This reduces vacuum > > locking requirements. > > > > > >=20 > > Maybe add something like: "This can be helpful to avoid query > > cancellations on standby that are not avoided by hot_standby_feedback."? >=20 > So you turn off truncate on the primary becaues the replay of the > truncate on the standby might cause a cancelation? I was not aware that > was a common problem. >=20 > > > > > >=20 > > > > Allow vacuum to avoid index cleanup with the > > INDEX_CLEANUP option (Masahiko Sawada) > > > > > >=20 > > I think we ought to expand a bit more on why one would do that, > > including perhaps some caveat? >=20 > I actually have no idea why someone would want to do that. >=20 > > > > > >=20 > > > > Allow modifications of system tables using > linkend=3D"sql-altertable"/> (Peter Eisentraut) > > > >=20 > > > > This allows modifications of reloptions and > > autovacuum settings. > > > > > >=20 > > I think the first paragraph is a bit dangerous. This does *not* > > generally allow modifications of system tables using ALTER TABLE. >=20 > OK, new text added "options": >=20 > Allow modifications of system table options using linkend=3D"sql-altertable"/> (Peter Eisentraut) >=20 > > > > > >=20 > > > > Compute behavior based on pgbench's > > value more precisely (Tom Lane) > > > > > >=20 > > "Computing behavior" sounds a bit odd. Maybe "Improve precision of > > pgbench's " option? >=20 > Done. >=20 > > > > > >=20 > > > > Allow restoration of an INSERT-statement dump > > to skip rows which would cause conflicts (Surafel Temesgen) > > > >=20 > > > > The pg_dump option is > > . > > > > > >=20 > > Hm, this doesn't seem that clear. It's not really a restoration time > > option, and it sounds a bit like that in the above. How about instead s= aying something > > like: > > Allow pg_dump to emit INSERT ... ON CONFLICT DO NOTHING (Surafel). >=20 > Done. >=20 > > > > > >=20 > > > > Allow the number of float digits to be specified > > for pg_dump and > > pg_dumpall (Andrew Dunstan) > > > >=20 > > > > This allows the float digit output to match previous dumps. > > > >=20 > > Hm, feels like that should be combined with the ryu compat entry? >=20 > Uh, but it relates to this specific command, and it is a new feature > rather than a compatibility. >=20 > > > > Add command to crea= te > > new table types (Haribabu Kommi, Andres Freund, =C3=81lvaro Herr= era, > > Dimitri Dolgov) > > > >=20 > > A few points: > >=20 > > 1) Is this really source code, given that CREATE ACCESS METHOD TYPE > > TABLE is a DDL command, and USING (...) for CREATE TABLE etc is an > > option to DDL commands? >=20 > I struggled with this. It is a new command, but it has no use yet to > users, so if we move it out of "source code" we need to be clear it has > no useful purpose yet. Can we do that clearly? >=20 >=20 > > 2) I think the description sounds a bit too much like it's about new > > forms of tables, rather than their storage. How about something > > roughly like: > >=20 > > Allow different table access methods to= be > > created and > linkend=3D"sql-createtable-method">used. This allows to develop a= nd > > use new ways of storing and accessing table data, optimized for > > different use-cases, without having to modify > > PostgreSQL. The existing heap access method > > remains the default. >=20 > I added a new detail paragraph: >=20 > This enables the development of new table > access methods, which can optimize storage for different > use-cases. The existing heap access method > remains the default. >=20 > > 3) This misses a large set of commits around making tableam possible, in > > particular the commits around > >=20 > > commit 4da597edf1bae0cf0453b5ed6fc4347b6334dfe1 > > Author: Andres Freund > > Date: 2018-11-16 16:35:11 -0800 > >=20 > > Make TupleTableSlots extensible, finish split of existing slot type. > >=20 > > Given that those commits entail an API break relevant for extensions, > > should we have them as a separate "source code" note? >=20 > I have added this commit to the table-am item. I don't know if this is > something that extension people care about, but if so, we should > certainly add it. >=20 > > 4) I think the attribution isn't quite right. For one, a few names with > > substantial work are missing (Amit Khandekar, Ashutosh Bapat, > > Alexander Korotkov), and the order doesn't quite seem right. On the > > latter part I might be somewhat petty, but I spend *many* months of > > my life on this. > >=20 > > How about: > > Andres Freund, Haribabu Kommi, Alvaro Herrera, Alexander Korotkov, D= avid Rowley, Dimitri Golgov > > if we keep 3) separate and >=20 > I used the above list since I combined 3 so far. >=20 > > Andres Freund, Haribabu Kommi, Alvaro Herrera, Ashutosh Bapat, Alexa= nder Korotkov, Amit Khandekar, David Rowley, Dimitri Golgov > > otherwise? > >=20 > > I think it might actually make sense to take David off this list, > > because his tableam work is essentially part of it's own entry, as >=20 > > > >=20 > > > > Improve speed of COPY into partitioned tables > > (David Rowley) > > > >=20 > > since his copy.c portions of 86b85044e823a largely are a rewrite of > > the above commit. > >=20 >=20 > OK, David removed. >=20 >=20 >=20 > > > >=20 > > > > Document that the B/bytes units can be specif= ied > > for server variables > > (Greg Stark) > > > > > >=20 > > Given how large changes we skip over in the release notes, I don't > > really see a point in including changes like this. Feels like we'd at > > the very least also have to include larger changes with typo/grammar > > fixes etc? >=20 > I mentioned it since it was added in a prior release, but was not > documented, so effectively there was no way for someone to know it was > possible before, so I thought it made sense to mention it. >=20 > I have only corrected a small number of issues above and look for > guidance to finish the rest. I will reply to the other emails in this > thread now. >=20 > --=20 > Bruce Momjian http://momjian.us > EnterpriseDB http://enterprisedb.com >=20 > + As you are, so once was I. As I am, so you will be. + > + Ancient Roman grave inscription + Greetings, Andres Freund