Re: pg_restore hangs on materialized view [SEC=UNCLASSIFIED]

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: rohan(dot)parkes(at)dpc(dot)vic(dot)gov(dot)au, pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: pg_restore hangs on materialized view [SEC=UNCLASSIFIED]
Date: 2018-06-22 08:47:02
Message-ID: 1529657222.2448.15.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

rohan(dot)parkes(at)dpc(dot)vic(dot)gov(dot)au wrote:
> I have made a backup of a database using the pgAdmin backup command. Attempting to
> restore it to a different server using the pgAdmin restore command results in the
> process hanging.
>
> I tried using the pg_restore utility in order to get a better output of the restore process.
> The restore gets to a particular materialized view and then just hangs. There's no kind
> of error message, so I don't know what is causing the problem. I have checked the view
> on the original server and it seems fine.
>
> At the moment all I can think to do is to try to exclude the materialized views from
> the dump file and recreate them manually.

Can you tell us the definition of the materialized view and the objects its
query is using? Odds are that it is just taking a long time to build.
Is it defined on a foreign table or something similar?

Yours,
Laurenz Albe
Yours
--
Cybertec | https://www.cybertec-postgresql.com

> Please consider the environment before printing this email

Please consider the environment before wasting precious electrons.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Ed Behn 2018-06-22 14:09:10 Re: pg_restore hangs on materialized view [SEC=UNCLASSIFIED]
Previous Message rohan.parkes 2018-06-22 04:32:08 pg_restore hangs on materialized view [SEC=UNCLASSIFIED]