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 1jnkB2-0002eO-Oa for pgsql-general@arkaria.postgresql.org; Tue, 23 Jun 2020 14:45:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jnkB1-0000RV-Jd for pgsql-general@arkaria.postgresql.org; Tue, 23 Jun 2020 14:45:31 +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 1jnkB1-0000RO-Bz for pgsql-general@lists.postgresql.org; Tue, 23 Jun 2020 14:45:31 +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 1jnkAy-0004SH-UR for pgsql-general@lists.postgresql.org; Tue, 23 Jun 2020 14:45:30 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C828E5C02AD; Tue, 23 Jun 2020 10:45:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 23 Jun 2020 10:45: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=i F5IjdVG0z4gcufhDIQEuiaYTvbGtGSxrUg/lRFhAVM=; b=Ajv0ZWlA/xOorbnfV F75v1vr4Ok50VKlfa+aCN/Mh6QRIwUKflVn5Z0m4gOoAwd+U3JxiqRn3P3gIxw5B qp1QAQ+oiz+AMXxAMfO0if/jczHywVEmdVRdzyDUwyE1oQI3NNcZcplKk6Q7gqvU NUfJDiHI3oRbVTdbwzkmOkJ1ePEXNrTji8ty+jMMKcLAvrplXFgtx0ksiYBCmBvy 6H/hQ13XmG8tDB3AwvZtiWgS4jWzWFKPmgKB+JgBvRfZo0HEkGxGlsn3Dr6Sa7iz czynEscd2tTEPCVhhjZeYCpuVQaQEmMznv9ExfCddqk1Vp3g5JAeBIivq2/DKRSP HLRBg== 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=iF5IjdVG0z4gcufhDIQEuiaYTvbGtGSxrUg/lRFhA VM=; b=WkNiwh9tSoGaRfsZaPOeHQQ8k6Zt9t4LPaGyxOBNeEVuxoKDcpQHv+fxi EPxqH6yMirTS3uBuJPGQOmVBQTLXLGFu2J6u0UU5F407AHDluu/mXUiK/qfgb4Mx doeZLn7Ju3ueIQ7LUfZlUxBo1z4uKUYX25yFEdHxX7J6c+MVDenAwfE7keA89Rba jr6uBkHKKUgE1NntqluTUDfRK+18phvoPHX5HiCq79Brz0tP3HjuijFPUaHuf0Mz yGLDgFgoP9mOyjzEXqOpWuLWWXgYj4zwmwLXnqjXMGtyNKS3mEYCP33V3hjl4olo LI0NIQhYTWe0Qm4dA7Lak43v++PVw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekhedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 2AFA230674E6; Tue, 23 Jun 2020 10:45:27 -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 07:45: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 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? -- Adrian Klaver adrian.klaver@aklaver.com