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 1iaSW4-0003Fk-Qb for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2019 22:44:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iaSW3-00023y-LT for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2019 22:44:03 +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 1iaSW3-00023q-6b for pgsql-hackers@lists.postgresql.org; Thu, 28 Nov 2019 22:44:03 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaSW0-00057T-5Z for pgsql-hackers@lists.postgresql.org; Thu, 28 Nov 2019 22:44:02 +0000 Received: by mail-wm1-x336.google.com with SMTP id f129so13093523wmf.2 for ; Thu, 28 Nov 2019 14:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=dk1iWjpag8b/v0cbtoz82FXzT8z9K5D04XnxBEg4lcc=; b=zAvnOBrQ7d5KNOvRY8GHM6x4mFyVXGjK61fz1LIICURWbMJmbt00EMMwKaOdHX5Gul w82eJe06Q7qYVfVtLWDShs0s6I9f128F5wBchhOIP0rTbVQ/l5pPgh3ySu13tLYA8aKi e7M63cPtlt9A9MOgMlFXkj6xY+KhsJYDxCN7Zu1BEk90p+aJJ7ChQyH9zOrn62RSAliL lq5s+ogDXitjK4SJ+1HthPW5OQ8nOGIsEMZvGdX9F6l4tCfFcC1Ekbb14rOxFoZpp2tK inBmQcNuryzSAz0znebQN+llauHbIxoUzqjJPEdyWjxKIciseCRaN10PLw1c21e/cNtf STrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=dk1iWjpag8b/v0cbtoz82FXzT8z9K5D04XnxBEg4lcc=; b=FBVVdDoh2o1v88uXm80FkzH+IG08sB1Iq2D2hNGitVkiXCr6nKMvw+Vdpp7z8TmzK1 ZpHXaHwkSJowh7E7EtmQ+HPQmTvO2k+BisPJuH3XJGO5VN8cRT7Uy5oJqo1gx6b18bI3 kT2NyvVYyAjz3UhrGg7Xd1l1+Kt0HCMh0CwusapYuYFx4Z8Fd1Hc0kTQpMY4mW6BkZiu 4YJGZMQShsyqIwzShpgqqODuCkwYEv3kiLU0IDAmNWQ1hNZV1miTV9x5ZeUyBguYUdXx UStnVdMQBHF2wtpbx4cGij2tiraLVLG5tlZIvJNSWSiRvuSDBIgwJCMRge+YOPn8woXS UjrQ== X-Gm-Message-State: APjAAAXziV1u5A8r7QT0JpT+317Gf09qV2jHQRytg2h64SJdmLaBhl14 98cWtYIcfc7wQsLH09zWz6teKw== X-Google-Smtp-Source: APXvYqz8ozDDLGupkBZw6Hh0fSNfM0i6a524/AJJVxUfDAidO7JjAQFgNr4l5giY3BEGRi0UUEV3ig== X-Received: by 2002:a05:600c:2945:: with SMTP id n5mr12275273wmd.80.1574981038216; Thu, 28 Nov 2019 14:43:58 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id n188sm6947256wme.14.2019.11.28.14.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 14:43:57 -0800 (PST) Date: Thu, 28 Nov 2019 23:43:56 +0100 From: Tomas Vondra To: Andrey Borodin Cc: Michael Paquier , Peter Eisentraut , Alvaro Herrera , Gasper Zejn , pgsql-hackers@lists.postgresql.org Subject: Re: pglz performance Message-ID: <20191128224356.4oca4lijnpnqctqa@development> References: <20191101154828.GA15829@alvherre.pgsql> <20191101165950.b5azncggaqfan5fi@development> <35c2a448-06b8-eab0-05ea-34a3f51ba9a8@2ndquadrant.com> <20191125080309.GK99720@paquier.xyz> <13C6049A-C3D9-4021-9934-41488DE38BE9@yandex-team.ru> <20191125082940.GP99720@paquier.xyz> <20191126094324.7y2n3n3houetavwd@development> <51E4C9A3-E2A3-4122-B5BC-B6A70BA64253@yandex-team.ru> <20191127152818.ojgfrxfzr7pqkpic@development> <8664A3B8-C049-45F5-9981-0E11BB619EE7@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8664A3B8-C049-45F5-9981-0E11BB619EE7@yandex-team.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Nov 27, 2019 at 11:27:49PM +0500, Andrey Borodin wrote: > > >> 27 нояб. 2019 г., в 20:28, Tomas Vondra написал(а): >> >>>> >>>> 6) I'm pretty sure the comment in the 'while (off < len)' branch will be >>>> badly mangled by pgindent. >>> >>> I think I can just write it without line limit and then run pgindent. >>> Will try to do it this evening. Also, I will try to write more about >>> memmove. >Well, yes, I could not make pgindent format some parts of that comment, gave up and left only simple text. >>> >>>> >>>> 7) The last change moving "copy" to the next line seems unnecessary. >>> >>> Oh, looks like I had been rewording this comment, and eventually came >>> to the same text..Yes, this change is absolutely unnecessary. >>> >>> Thanks! >>> >> >> Good. I'll wait for an updated version of the patch and then try to get >> it pushed by the end of the CF. > OK, pushed, with some minor cosmetic tweaks on the comments (essentially using the formatting trick pointed out by Alvaro), and removing one unnecessary change in pglz_maximum_compressed_size. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services