Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmtaf-0008El-2G for pgsql-admin@arkaria.postgresql.org; Mon, 15 Jul 2019 05:31:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hmtad-0005Js-Ux for pgsql-admin@arkaria.postgresql.org; Mon, 15 Jul 2019 05:31:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmtad-0005GL-JQ for pgsql-admin@lists.postgresql.org; Mon, 15 Jul 2019 05:31:55 +0000 Received: from jakobs.com ([85.214.83.89] helo=rs.plausibolo.de) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmtaU-0007MX-AL for pgsql-admin@lists.postgresql.org; Mon, 15 Jul 2019 05:31:55 +0000 Received: from localhost (localhost [127.0.0.1]) by rs.plausibolo.de (Postfix) with ESMTP id 663B8BE0DA7 for ; Mon, 15 Jul 2019 07:31:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at rs.plausibolo.de Received: from rs.plausibolo.de ([IPv6:::1]) by localhost (h2367442.stratoserver.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 7_ZGvTYMEVkO for ; Mon, 15 Jul 2019 07:31:41 +0200 (CEST) Received: from [192.168.178.194] (i577BCFDA.versanet.de [87.123.207.218]) by rs.plausibolo.de (Postfix) with ESMTPSA id 7CA93BE07D8 for ; Mon, 15 Jul 2019 07:31:41 +0200 (CEST) Date: Mon, 15 Jul 2019 07:31:29 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <1586344675.694544.1563168420153@mail.yahoo.com> References: <1586344675.694544.1563168420153@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: How do I import a sql file into pgAdmin4 ? To: pgsql-admin@lists.postgresql.org From: Holger Jakobs Message-ID: <81AFFC3D-FD7B-4C11-93EE-210A8B1C752D@jakobs.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk The easiest way would be using psql on the command line=2E Dump a little database using pg_dump with the option --data-only to see wh= at the format digestible by psql looks like=2E Basically, it's a COPY command followed by the data in tab-separated forma= t finished by a line consisting of a backslash and a period=2E \=2E Am 15=2E Juli 2019 07:27:00 MESZ schrieb Karen Goh : >Hi, > >I need to migrate to postgreSQL using SQL flat files which contains a >few thousands rows of data=2E > >So far, I have attempted but not successful=2E Not sure if it can't be >done using pgAdmin4=2E > >And posting to Stackoverflow superUser doesn't help as there is no >reply at all=2E > >Hence, I hope to get some help here=2E > >Thanks & regards, >Karen --=20 Holger Jakobs, Bergisch Gladbach +49 178 9759012 - sent from mobile, therefore short -