Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvKjH-004Zx0-Bx for pgsql-admin@arkaria.postgresql.org; Tue, 24 Oct 2023 16:58:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qvKjD-00A3jt-TT for pgsql-admin@arkaria.postgresql.org; Tue, 24 Oct 2023 16:58:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvKjD-00A3hh-4Z for pgsql-admin@lists.postgresql.org; Tue, 24 Oct 2023 16:58:04 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvKjA-002Uka-NZ for pgsql-admin@postgresql.org; Tue, 24 Oct 2023 16:58:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 61D2FE404E; Tue, 24 Oct 2023 16:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1698166618; bh=aVPOCu+/pIvicUSYIT+3QWtu0PNiTWKWyznvcdvPNZY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=1wNp2hdTGj46JMNYhTe71JknAX7j1p9/IAIb0jDlot38rvE0Thulvv9t94isUVDLg BaiDI+pdMqQWS1wHvOH6xCFg2otxfo+9kAbznxikt3H5wyiElgfjBD6cwC+Bhn0R4P CZgoVDGj3jhnHJFJpNYD1IgS6BVnYReUBLGqvH4CX4hWtqVv45Sd7xbMMANY/TVhE/ lD+ehsGLrp1ix5AoaCnwD77w9pr8+ilquVeekEbKf+rmDkhED5B1mI1Besr1eVvC61 +ttnBj47N2e5ZTOyIn+rSUNTtcIYfktiK4r79k9FRcjpIs0+iZQp3TbPSxsmP6E0pl hmeKtYfHlNYcw== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EvDuVTT42HkC; Tue, 24 Oct 2023 16:56:58 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id CE0A0E4038; Tue, 24 Oct 2023 16:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1698166617; bh=aVPOCu+/pIvicUSYIT+3QWtu0PNiTWKWyznvcdvPNZY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ubpiHrCFooRiPglSEUhQhJuGp2PzLYgn0LgP5VmoDmeo4ICXdpZxEgepJqf2bsMYz I9siRYzlx+adKuxE3XnP9knauCmIAmlhU9WZ8LEOE6Gisu6KmuEsj0oX+QzWeSEVmf xBY8Oe3wMGaLkjtwSZeIq7Y9/bWRuGT8Js1LchrDGNiQzaOzVTmvm0Ent7F2rT65bu dNMfQ+faCIUwVzw+lJeSBfN73IcJZPhQdI1w2DXwWTILsf8x6+OEPS5HDgI8U5CIOP 9GnYlmdVvvaLoHtyeSBHs+S5fRB4FRrpckF0/nXS6jLLtFJCaWiR4j5LVMyL1CeW/c 9i654fLVyf5mw== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Subject: Re: pg_restore is not working From: Scott Ribe In-Reply-To: Date: Tue, 24 Oct 2023 10:56:47 -0600 Cc: "pgsql-admin@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <7102931C-1588-470F-95D7-39E50320690F@elevated-dev.com> References: <0100018b62722391-65a890bf-5d6b-415f-8831-bf8ae2a09fde-000000@email.amazonses.com> To: M Sarwar X-Mailer: Apple Mail (2.3774.100.2.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 24, 2023, at 10:43=E2=80=AFAM, M Sarwar = wrote: >=20 > =20 > Hi, >=20 > Restore is having no errors but it is not restoring any data. > I have used the below command pg_dump > pg_dump -F t -v -h = bronxdb1.c52p1yyyjuib.us-xxx-west-1.rds.amazonaws.com -U db_sarwar -d = NGBRDVDB -t 'bronxdev.errors' -f = C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Bronxdev-Err= ors_20231024-5.DUMP >=20 > I am using the below command for the restore. >=20 > PS H:\> pg_restore -F t -v -h = bronxdb1.c52p1fyyyuib.us-xxx-west-1.rds.amazonaws.com -U db_sarwar -d = bronxdb1 -t 'bronxdev.errors' = C:\Mohammed\Work\NGC\Apps\Bronx\Backups\Dumps\data\backup_Dev_Bronxdev-Err= ors_20231024-5.DUMP > pg_restore: connecting to database for restore > Password: > pg_restore: implied data-only restore > PS H:\> >=20 > Thanks, > Sarwar=20 You're missing the -f on the pg_restore to take the dump from a file, so = it's sitting waiting for SQL to come via stdin.