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 1kSb6Y-0003MB-3E for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Oct 2020 07:21:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kSb6X-0008Is-0A for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Oct 2020 07:21:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSb6W-0008Ih-PX for pgsql-hackers@lists.postgresql.org; Wed, 14 Oct 2020 07:21:44 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSb6U-0005Of-Ir for pgsql-hackers@postgresql.org; Wed, 14 Oct 2020 07:21:44 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTP id 5E07A6235F; Wed, 14 Oct 2020 16:21:37 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_5007746fe26a378c231799638e71d811" Date: Wed, 14 Oct 2020 16:21:37 +0900 From: Shinya Okano To: Fujii Masao , Kasahara Tatsuhito Cc: pgsql-hackers Subject: Re: Add a description to the documentation that toast_tuple_target affects "Main" In-Reply-To: References: <93f46e311a67422e89e770d236059817@oss.nttdata.com> Message-ID: X-Sender: btokanosn@oss.nttdata.com User-Agent: Roundcube Webmail/1.1.9 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_5007746fe26a378c231799638e71d811 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2020-10-14 01:30, Fujii Masao wrote: > On 2020/10/13 10:40, Kasahara Tatsuhito wrote: >> On Fri, Oct 9, 2020 at 5:44 PM Shinya Okano >> wrote: >>> Regarding the toast_tuple_target parameter of CREATE TABLE, the >>> documentation says that it only affects External or Extended, but it >>> actually affects the compression of Main as well. >>> >>> The attached patch modifies the document to match the actual >>> behavior. >> +1 > > +1 > > + we try to compress long column values or to move into TOAST > tables, and > > "we try to compress and/or move long column values into TOAST tables, > and" is better? Thank you everyone for reviews. I attached the new version of the patch. Regards, -- Shinya Okano --=_5007746fe26a378c231799638e71d811 Content-Transfer-Encoding: base64 Content-Type: text/x-diff; charset=us-ascii; name=V2-Add-Main-to-the-toast_tuple_target-doc.patch Content-Disposition: attachment; filename=V2-Add-Main-to-the-toast_tuple_target-doc.patch; size=1311 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9yZWYvY3JlYXRlX3RhYmxlLnNnbWwgYi9kb2Mvc3Jj L3NnbWwvcmVmL2NyZWF0ZV90YWJsZS5zZ21sCmluZGV4IDI4Zjg0NDA3MWIuLmZkNjc3N2FlMDEg MTAwNjQ0Ci0tLSBhL2RvYy9zcmMvc2dtbC9yZWYvY3JlYXRlX3RhYmxlLnNnbWwKKysrIGIvZG9j L3NyYy9zZ21sL3JlZi9jcmVhdGVfdGFibGUuc2dtbApAQCAtMTM1OSwxMCArMTM1OSwxMSBAQCBX SVRIICggTU9EVUxVUyA8cmVwbGFjZWFibGUgY2xhc3M9InBhcmFtZXRlciI+bnVtZXJpY19saXRl cmFsPC9yZXBsYWNlYWJsZT4sIFJFTQogICAgIDxsaXN0aXRlbT4KICAgICAgPHBhcmE+CiAgICAg ICBUaGUgdG9hc3RfdHVwbGVfdGFyZ2V0IHNwZWNpZmllcyB0aGUgbWluaW11bSB0dXBsZSBsZW5n dGggcmVxdWlyZWQgYmVmb3JlCi0gICAgICB3ZSB0cnkgdG8g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