pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Nicola Contu <nicola.contu@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Cc: Alessandro Aste <Alessandro.aste@gtt.net>
Subject: Re: Restore from dumps
Date: Wed, 25 Jul 2018 10:28:45 -0400
Message-ID: <1735.1532528925@sss.pgh.pa.us> (raw)
In-Reply-To: <1532513198.2489.1.camel@cybertec.at>
References: <CAMTZZh0-v1JBKyyNxF=D2nHecetDxX05cT=PkqqmBUtpK-TKKg@mail.gmail.com>
	<1532513198.2489.1.camel@cybertec.at>

Laurenz Albe <laurenz.albe@cybertec.at> writes:
> Nicola Contu wrote:
>> pg_restore: [archiver (db)] could not execute query: ERROR:  relation "all_days" does not exist
>> LINE 3: from all_days
>> ^
>> QUERY:
>> select count(*)::numeric
>> from all_days
>> where (("date" between $2::date and $1::date) or ("date" between $1::date and $2::date))
>> and dow not in (0,6)
>> 
>> CONTEXT:  SQL function "bdays" during inlining

> Try to ALTER the materialized view so that it refers to "public.all_days"
> rather than "all_days".

Per the error message, what needs fixing is the SQL function "bdays",
not the matview as such.

			regards, tom lane




view thread (8+ messages)  latest in thread

Message-ID: <1735.1532528925@sss.pgh.pa.us>
Permalink:  ../1735.1532528925@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1735.1532528925@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, nicola.contu@gmail.com, Alessandro.aste@gtt.net
  Subject: Re: Restore from dumps
  In-Reply-To: <1735.1532528925@sss.pgh.pa.us>
  References: <CAMTZZh0-v1JBKyyNxF=D2nHecetDxX05cT=PkqqmBUtpK-TKKg@mail.gmail.com> <1532513198.2489.1.camel@cybertec.at> <1735.1532528925@sss.pgh.pa.us>

* 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