pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Edu Gargiulo <egargiulo@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump empty tables
Date: Tue, 23 Jun 2020 10:25:26 -0700
Message-ID: <d3734ba2-d3a2-5168-8cbb-e4eb121f6510@aklaver.com> (raw)
In-Reply-To: <CAD_UXMam0O0Ttfp3nJVV74y8yiV=va_Phyyq7K5Kg4RbA48amw@mail.gmail.com>
References: <CAD_UXMbu6Xy5ESEdAa2-o7vVN6O300exNYsywjcMZqg-SWz6hw@mail.gmail.com>
	<0ef485b2-5091-d515-ecb2-3c05b1582199@aklaver.com>
	<CAD_UXMaS2JiYDXT9SJ7Yb6NqfvAQ5EZFHx8Qhw88J5Nbz3-vbQ@mail.gmail.com>
	<f4376294-2555-296f-cc2c-596ac31ef5fe@aklaver.com>
	<CAD_UXMa_4OrdOtRvNcbX9PRgZBaYTYBd-ZhoQrnKqSqRK=L9Pw@mail.gmail.com>
	<cdf63dcc-a27c-74ea-38c5-7691c8f54464@aklaver.com>
	<CAD_UXMam0O0Ttfp3nJVV74y8yiV=va_Phyyq7K5Kg4RbA48amw@mail.gmail.com>

On 6/23/20 9:44 AM, Edu Gargiulo wrote:
> 
> On Tue, Jun 23, 2020 at 11:45 AM Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 6/23/20 7:37 AM, Edu Gargiulo wrote:
>      >
>      >
>      > On Tue, Jun 23, 2020 at 10:56 AM Adrian Klaver
>      > <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>     <mailto:adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>>> wrote:
>      >
>      >     On 6/23/20 6:48 AM, Edu Gargiulo wrote:
>      >      > On Tue, Jun 23, 2020 at 10:34 AM Adrian Klaver
>      >      > <adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com> <mailto:adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>>
>      >     <mailto:adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>
>      >     <mailto:adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>>>> wrote:
>      >      >
>      >      >     On 6/23/20 6:30 AM, Edu Gargiulo wrote:
>      >      >      > Hi all,
>      >      >      >
>      >      >      > We are using postgresql 11.7 on Debian.
>      >      >      > I noticed that pg_dump is not including records on
>     tables with
>      >      >     fields
>      >      >      > defined as array type (integer[] and real[]). The table
>      >     structure is
>      >      >      > normally restored but they have 0 records on restoring.
>      >      >
>      >      >     What is the complete command you are using when
>     running pg_dump?
>      >      >
>      >      >
>      >      > /usr/bin/pg_dump -d historic -Z 9 -Fc -f srvtsdb01.dmp
>      >
>      >     Coffee has kicked in and I realized I should have asked for the
>      >     pg_restore command as well. So what is that?
>      >
>      >
>      > pg_restore -d historic -h localhost --clean srvtsdb01.dmp
>      > pg_restore -d historic --schema well --verbose srvtsdb01.dmp
>      > pg_restore -d historic --schema well --clean --verbose srvtsdb01.dmp
>      >
> 
>     With --verbose are you seeing any errors?
> 
>     What does pg_restore -V show?
> 
> 
> Thanks for your response Adrian, looking at the pg_restore output I saw 
> issues with triggers and timescaledb extension on restoring those empty 
> tables.

I'm going to bet that is the problem.

What where the errors?

Is the timescaledb extension installed on the database you are restoring to?

> 
> --
> edugarg


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (10+ messages)  latest in thread

Message-ID: <d3734ba2-d3a2-5168-8cbb-e4eb121f6510@aklaver.com>
Permalink:  ../d3734ba2-d3a2-5168-8cbb-e4eb121f6510@aklaver.com/
Also on:    postgresql.org/message-id/d3734ba2-d3a2-5168-8cbb-e4eb121f6510@aklaver.com

 · 

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: adrian.klaver@aklaver.com, egargiulo@gmail.com
  Subject: Re: pg_dump empty tables
  In-Reply-To: <d3734ba2-d3a2-5168-8cbb-e4eb121f6510@aklaver.com>
  References: <CAD_UXMbu6Xy5ESEdAa2-o7vVN6O300exNYsywjcMZqg-SWz6hw@mail.gmail.com> <0ef485b2-5091-d515-ecb2-3c05b1582199@aklaver.com> <CAD_UXMaS2JiYDXT9SJ7Yb6NqfvAQ5EZFHx8Qhw88J5Nbz3-vbQ@mail.gmail.com> <f4376294-2555-296f-cc2c-596ac31ef5fe@aklaver.com> <CAD_UXMa_4OrdOtRvNcbX9PRgZBaYTYBd-ZhoQrnKqSqRK=L9Pw@mail.gmail.com> <cdf63dcc-a27c-74ea-38c5-7691c8f54464@aklaver.com> <CAD_UXMam0O0Ttfp3nJVV74y8yiV=va_Phyyq7K5Kg4RbA48amw@mail.gmail.com> <d3734ba2-d3a2-5168-8cbb-e4eb121f6510@aklaver.com>

* 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