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 1kuhQ0-0005uD-5V for pgsql-general@arkaria.postgresql.org; Wed, 30 Dec 2020 19:46:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kuhPz-0004r1-0g for pgsql-general@arkaria.postgresql.org; Wed, 30 Dec 2020 19:45:59 +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 1kuhPy-0004qu-NX for pgsql-general@lists.postgresql.org; Wed, 30 Dec 2020 19:45:58 +0000 Received: from mout.gmx.net ([212.227.15.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuhPt-00089U-RX for pgsql-general@lists.postgresql.org; Wed, 30 Dec 2020 19:45:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609357552; bh=uaiGD7A6cC/nSgXzxRX50lLrnG8EB99+Q+GIxnY23QU=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=LvmsacqzY2w71lQF3eLc6M8XoZHXk8Mn7nH6Kb/JUNo/3YTZcQSnvi4rR6Reg+1o+ sGm+ElyOyRipF/vphAEHXNljdajx/+WGEh6BVgIOMCe08+hgm+Y2O03X2jPVdeoKge qBqABVsRnSKb9lF9jFsrVVV1GkpX5i2kYm4wrQOU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([89.14.1.1]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MV63g-1kTiru2BYE-00SAQa for ; Wed, 30 Dec 2020 20:45:52 +0100 Received: from ncq by hermes with local (Exim 4.94) (envelope-from ) id 1kuhPq-00056G-Q9 for pgsql-general@lists.postgresql.org; Wed, 30 Dec 2020 20:45:50 +0100 Date: Wed, 30 Dec 2020 20:45:50 +0100 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: Getting "could not read block" error when creating an index on a function. Message-ID: References: <2344514.1609347027@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:QmmtKGzIE4aHPHQap38vKYk2I7Sc5X2XdSsznhOM5HT+0FrUPJi LiDfcf/dwO3Y+UvXOIMim4xebbEfRCPRfGOSxwFCBluzpLLlXZ0SOqacSi0KpBEt9sMKYMo IA8WgnqmBTkiKbh7JJbc0ycZNB+VGRkKb5qLQc3/H0TtaOIfkL61aaaF9cSa08LjrMNMU7o oAHay65C6uMdvcfXfLpww== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:LUhFZFvqg+8=:10wi/csTfP7kp7N7jtVSPC e5yTloz07toi1fmtBL0M5KcmtbGEnVHnp2Ma/8To1e6B5uIybW1HrNzGL/qPtnTnN6u8pHQkT SLuzpJA/hwNIuOcMkATlq/qgxTaRhsmZFHGd6JT0sSGDLoYBxZx8T/tbVtPYwAqoz/C9E4IQq IujpDFtaEvV/e7yDqrTHW+fwluDBfACOArT3BBxQOJHaJnC8xtknfXR1XrwOgwJ+NDG6EGbUh JyRl74R0tlpOGYu8N7mI6UKUZe/SMkGF0USaUxSpLJfKh8x+dQVuUgutR01QGCvsyQxmvjYVa Cg52GxWPjNxX2jiOXAjN5OQmdGAf42uyQ/Xr39+pE6wpswpH6dtkKAuvypZYeLoSFFGGVyd+v V772abjqEL6Bg86rGRWfCBOFzAK4sgkh+zlFAJYVBNDBQ4tgP5Me+tFQgmyFyYyWzEsAqXBxA Y156+qZi6Zcvs7guy5iYdxTG4EyDE96wBr1HR+sRkFFeMhTqK5XJgvsVE7c+e60SuJ6r2kFz7 3rEBHuaJMYyABdvQkpf0z07kb0XaP1KeovrMc/0z9ri3JWR/WQA8LYHQ64tTUOdCKPHTqElqB 7JWYZsA5bISO4osBIcMl9SWKuY8LgHB8UBQY0x9yQ0SocuT7cxPcTPZFAi0YBOZBRk7U5z8t2 /NmQF+aL0csNfUBuEXji2rbiprNrfUBOZqFuozAzYQ4YsSLm1kfgxqsuUAS8grevESbPOgwZm M1hIVEKf6Vk2SnjSWUhGJnCcyEFzPZtu4s61W/h4FfuoImdTK2RDjYM1X468SUZwwri4nQTXc LP3sURY7C6TEBI46igJ3hL49czKPF42f2MX65oVTfTxiBzEpyzgDtj3jPmDmu0QCKIv5egUjO Xs6xhWa33Rlnp3kpRKRw== Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am Wed, Dec 30, 2020 at 02:37:59PM -0500 schrieb Demitri Muna: > I want to index the results of these repeated, unchanging calculations t= o speed up other queries. Which mechanism would be best to do this? Create= additional columns? Create another table? A materialized view ? Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B