pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Getting "could not read block" error when creating an index on a function.
Date: Wed, 30 Dec 2020 20:45:50 +0100
Message-ID: <X+zY7uY9fMiN12/B@hermes.hilbert.loc> (raw)
In-Reply-To: <B76CAF59-EC22-4907-8AD7-A4261C4DA5CA@demitri.com>
References: <E88B1929-C94D-45C1-B11F-0B48B39D64B7@demitri.com>
	<2344514.1609347027@sss.pgh.pa.us>
	<B76CAF59-EC22-4907-8AD7-A4261C4DA5CA@demitri.com>

Am Wed, Dec 30, 2020 at 02:37:59PM -0500 schrieb Demitri Muna:

> I want to index the results of these repeated, unchanging calculations to speed up other queries. Which mechanism would be best to do this? Create additional columns? Create another table?

A materialized view ?

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (8+ messages)  latest in thread

Message-ID: <X+zY7uY9fMiN12/B@hermes.hilbert.loc>
Permalink:  ../X+zY7uY9fMiN12%2FB@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/X+zY7uY9fMiN12/B@hermes.hilbert.loc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Karsten.Hilbert@gmx.net
  Subject: Re: Getting "could not read block" error when creating an index on a function.
  In-Reply-To: <X+zY7uY9fMiN12/B@hermes.hilbert.loc>
  References: <E88B1929-C94D-45C1-B11F-0B48B39D64B7@demitri.com> <2344514.1609347027@sss.pgh.pa.us> <B76CAF59-EC22-4907-8AD7-A4261C4DA5CA@demitri.com> <X+zY7uY9fMiN12/B@hermes.hilbert.loc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox