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 1kdals-000830-G2 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Nov 2020 15:13:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdalr-00057R-FH for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Nov 2020 15:13:51 +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 1kdalr-00057K-82 for pgsql-hackers@lists.postgresql.org; Fri, 13 Nov 2020 15:13:51 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdaln-0005J1-JE for pgsql-hackers@postgresql.org; Fri, 13 Nov 2020 15:13:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2E6375F7A2; Fri, 13 Nov 2020 10:13:45 -0500 (EST) Date: Fri, 13 Nov 2020 10:13:45 -0500 From: Stephen Frost To: Tomas Vondra Cc: Thomas Munro , Tomas Vondra , Dmitry Dolgov <9erthalion6@gmail.com>, David Steele , Andres Freund , Alvaro Herrera , pgsql-hackers Subject: Re: WIP: WAL prefetch (another approach) Message-ID: <20201113151344.GU16415@tamriel.snowman.net> References: <20200901131426.5lse2jlepm3uligv@development> <20200901141826.gbhqz664brtt4y2t@development> <20200908231235.lsgat5ni35h6odqt@development> <20201010112935.qrhm572v4djrjljo@development> <5437ce5b-d305-bd85-23ec-ddb15735d93f@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OVUm/YaakhAp1Hve" Content-Disposition: inline In-Reply-To: <5437ce5b-d305-bd85-23ec-ddb15735d93f@enterprisedb.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OVUm/YaakhAp1Hve Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tomas Vondra (tomas.vondra@enterprisedb.com) wrote: > On 11/13/20 3:20 AM, Thomas Munro wrote: > > I'm not really sure what to do about achive restore scripts that > > block. That seems to be fundamentally incompatible with what I'm > > doing here. >=20 > IMHO we can't do much about that, except for documenting it - if the > prefetch can't work because of blocking restore script, someone has to > fix/improve the script. No way around that, I'm afraid. I'm a bit confused about what the issue here is- is the concern that a restore_command is specified that isn't allowed to run concurrently but this patch is intending to run more than one concurrently..? There's another patch that I was looking at for doing pre-fetching of WAL segments, so if this is also doing that we should figure out which patch we want.. I don't know that it's needed, but it feels likely that we could provide a better result if we consider making changes to the restore_command API (eg: have a way to say "please fetch this many segments ahead, and you can put them in this directory with these filenames" or something). I would think we'd be able to continue supporting the existing API and accept that it might not be as performant. Thanks, Stephen --OVUm/YaakhAp1Hve Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfrqKoAAoJEO1sijiDR2RVjGYP+gLvmM1yvBkcTqWwO3/rrbdT 6rd+E4r+EyaUC4Fj41stBFwEs5o6KtKiZfI24AsRHpDrQma4Z0d5yX/LJRVdB0Rw epXsPbYxOG4ix+ZMFO5kAYrss5YyZ1n/RO0dlXK5MsVyAMCoD8vdZ0GN0BG6Ytsr e22IYLqVnqOiCBWKTbUwk2E5zszuAxXb+iW/NTtxHycsElrWr6Tmn2LGnXGoUvqg mRHQK0xfwZ92CYaygrGFdS/5rowxbNbQ+qgiPu2j3LAY+7tNKVxh7ecHAB0IQSXy kQHa5S3LEkiNB7ub+hrfPWfAECQQ6XBwgLgOxEPTJ+7PFVJxWGgHwz+wMe02tWWQ bqr1lcVJVt6dTE7iuDzU85O1CheddT0Nc+jSJDhpJHBnBDnxMowgbofRtCTmykCW QSNWwsYhP21CscePl/A+AQk/V9RgQv+aTslS6tDBbdsAU6fp7FOLd8w9UnEYA4Kx /u15Go2q5LnuWgBUGeI/XajnbS/k6L7HJdyNT8PorUl+2IxiWGTRwaXKt3qQKBhj 7sOg8LZ193fEsauGQ8VMfKJkujGSUhJrG7mHzLepFXE/70h/pr/X4Wub4ZBU+NNt n4IpXNb2MpfJqP9Ur3E5FNplIwE6DcLLm/daQmEaf03zc1Fq9iuJwBa7u8sK8+/B JiIuH5r6Wa3k1xlV4LrQ =AjgL -----END PGP SIGNATURE----- --OVUm/YaakhAp1Hve--