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 1jnmft-0008Ja-Pn for pgsql-general@arkaria.postgresql.org; Tue, 23 Jun 2020 17:25:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jnmfs-0003pQ-N1 for pgsql-general@arkaria.postgresql.org; Tue, 23 Jun 2020 17:25:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnmfr-0003pJ-Pr for pgsql-general@lists.postgresql.org; Tue, 23 Jun 2020 17:25:32 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnmfo-0005oW-IQ for pgsql-general@lists.postgresql.org; Tue, 23 Jun 2020 17:25:30 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7FE805C01F6; Tue, 23 Jun 2020 13:25:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 23 Jun 2020 13:25:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=Y f0UbVnpWrKbP5mTlR7sA9VnE8I4NMIpDvWnNG5/wac=; b=AjdThV0n1HC+pog/4 s6OcKIWcaWI83DwQMg2NayWqd6IQ6+raI3ACPIZ/pKAv19yCgDPW0HRgWT+eSKMi Mhg9cw0oc1laZGfRL1+BHAk+g9Lmnxo/RajOcjivj3AH50/bKF55s2hL58KcU9V2 oWFG7Llnxiv0lZd9h49SZQmuXBCaUJUYoQHj4/our29P5PnS1zyoshG7yycP80na 6oOZLXR5JGSXlivKFC5YMdB54Eqb/nCpz7XFPv1EgmTiTrjsi8wTt/GHtsxAgkXe mPHXbbq3jL39I/aM/hY/1Rct7aT0mWjdx0hRoLC7MQYcy2y1F5cqvWXbKmOsP7w+ 866KA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Yf0UbVnpWrKbP5mTlR7sA9VnE8I4NMIpDvWnNG5/w ac=; b=SDbdMhrQOZb8Cmu+PmQWK+TYMwRJASXFRO1/6HBboKoDkBjOnXB5mUvvg kQrlDORTTwj4JGjRag1jH7O203Bzwa66VUgeq0uRQRZ8oqQDDO0IIMWf20UJy15/ 4jOshFPV4iXfWq9OPhbdBGEWCvUUKH1VOGFST45r/666sh4Et1ybgHGxEOUMaeOf Br9oJur5o9x/7TtyeoTRMGGzFJLvd4By0yLO7bxZGPaTl6AXBPrzw7TDkbCBeEc+ MTWZzJWKhj1SVpgxr+rLFVbCbu8vc2JWvof0fpQi2b+rB8Ewm84rt0HCU13VrcGX 57TiL9iwaSkkJANzOa/Hm61aE8aLw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekhedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeegrdelgedrjeefrddvvddvnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id F0103328005A; Tue, 23 Jun 2020 13:25:26 -0400 (EDT) Subject: Re: pg_dump empty tables To: Edu Gargiulo Cc: pgsql-general@lists.postgresql.org References: <0ef485b2-5091-d515-ecb2-3c05b1582199@aklaver.com> From: Adrian Klaver Message-ID: Date: Tue, 23 Jun 2020 10:25:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/23/20 9:44 AM, Edu Gargiulo wrote: > > On Tue, Jun 23, 2020 at 11:45 AM Adrian Klaver > > wrote: > > On 6/23/20 7:37 AM, Edu Gargiulo wrote: > > > > > > On Tue, Jun 23, 2020 at 10:56 AM Adrian Klaver > > > >> wrote: > > > >     On 6/23/20 6:48 AM, Edu Gargiulo wrote: > >      > On Tue, Jun 23, 2020 at 10:34 AM Adrian Klaver > >      > > > >      > >      >>> 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