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 1hoS1G-0002hB-7x for pgsql-admin@arkaria.postgresql.org; Fri, 19 Jul 2019 12:29:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoS1F-0002Lr-08 for pgsql-admin@arkaria.postgresql.org; Fri, 19 Jul 2019 12:29:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoS1E-0002Lj-FV for pgsql-admin@lists.postgresql.org; Fri, 19 Jul 2019 12:29:48 +0000 Received: from sonic310-13.consmr.mail.bf2.yahoo.com ([74.6.135.123]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hoS1B-00043S-8y for pgsql-admin@lists.postgresql.org; Fri, 19 Jul 2019 12:29:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1563539382; bh=/fyUuqk6at3Rbkfpj48u6gldZP7AMhNpKBrnmlGPAy0=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=lU1qi1AaYrQ3EYNdlXtvzaHV0QEPGUCOYNHcAxaApkl7DRE5LLtVX628ZI1voifCArf9e6f7xAYWsYZ9yqbC3CS4y1kGhNBTZQCn3aRBvOBkuTvfZ/zgEEsx/AJ+2JkVqjxatI5KEx1yIjaCdceBnycBBHz/Ghloqc8W6nUbLIOLfODetMNrkLtOYIfhxsfPY6XlxVLOaDXS5GuYTMHpQ2V/8+cQzkXhSPhl04Nu4cfIjihwhkmJNfbq5VwLJIr8KN0MRDZ7wRMkNJi46JuVT+KiSiwF302NpZHNFJxPFypkhalz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zF5PmDp3H_dxJz2rWANIJ6q38C kTak5zSM34rH4ULIC1g5cBhYAjYVTl2DBUjUneTLuwF8YjM.4PzSsL21.2YeP25SEbGLxevnztH7 EhVzTQPFwiEiHMSPznSTlUrs0jmp53_kTmwXCndBA44RVsBYfxChk3hrY2FQzy1RoNxq60BshS59 1gynZWy_58LpKHpkSC9nQ4YsbY7ZAUZnuVWAzjLrIAEZuxpbciGmgiuTWTJV53te9KfezhD_dABs G6C32MTHYz9dT9w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Fri, 19 Jul 2019 12:29:42 +0000 Date: Fri, 19 Jul 2019 12:29:39 +0000 (UTC) From: Karen Goh To: pgsql-admin@lists.postgresql.org, Holger Jakobs Message-ID: <1290115266.2200954.1563539379544@mail.yahoo.com> In-Reply-To: <43c3af86-ec16-ae22-de9f-b01622ab5f44@jakobs.com> References: <1586344675.694544.1563168420153@mail.yahoo.com> <81AFFC3D-FD7B-4C11-93EE-210A8B1C752D@jakobs.com> <325397478.730265.1563181161656@mail.yahoo.com> <43c3af86-ec16-ae22-de9f-b01622ab5f44@jakobs.com> Subject: Re: How do I import a sql file into pgAdmin4 ? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2200953_1381539911.1563539379543" Content-Length: 6543 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2200953_1381539911.1563539379543 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Monday, July 15, 2019, 9:44:24 PM GMT+8, Holger Jakobs wrote: Hi Kargen, The password is the one which was set for the respective user (here: postgres) in the database backend. A fresh installation typically has only one user role named postgres. The password is asked for during the installation (in case of Windows). On Linux servers the role has no password, but is authenticated by peer, which means that you connect from a session on the database server locally to the database. After installing the EDB Postgres database on Windows, you have to start the client programs with their complete path or add the directory where they reside (typically C:\Program Files\Postgresql\versionNumber\bin) to the environment variable %PATH%. Please check with your system administrators on how to do this. OK. Now I found my password from my notebook. Using Windows 10 command prompt, the error said it can't find that file but the fileName everything was correct. Is there anything wrong with that query? I also read this thread but I can't find any file open to get pgAdmin4 to open my file. https://www.postgresql.org/message-id/287946147.391841.1515085145687%40mail.yahoo.com Please advise. Regards, Holger Am 15.07.19 um 10:59 schrieb Karen Goh: Hi Hoger, I tried as you said. I downloaded this psql - postgres frontend for windows and then tried pg_dump as well as psql command prompt. But, they asked me for password. May I know what kind of password it is referring to ? When I downloaded POSTGRESQL, it is saved in the program files in windows 10 but there isn't any command line tool available. I tried using windows 10 command prompt but it is not accepting any command like I what type : psql -U postgres -d mydb -a -f "Filelocation\name" Please help. Thanks. On Monday, July 15, 2019, 1:32:08 PM GMT+8, Holger Jakobs wrote: The easiest way would be using psql on the command line. Dump a little database using pg_dump with the option --data-only to see what the format digestible by psql looks like. Basically, it's a COPY command followed by the data in tab-separated format finished by a line consisting of a backslash and a period. \. Am 15. 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. > >So far, I have attempted but not successful. Not sure if it can't be >done using pgAdmin4. > >And posting to Stackoverflow superUser doesn't help as there is no >reply at all. > >Hence, I hope to get some help here. > >Thanks & regards, >Karen -- Holger Jakobs, Bergisch Gladbach +49 178 9759012 - sent from mobile, therefore short - -- Holger Jakobs, Bergisch Gladbach instant messaging: xmpp:holger@jakobs.com +49 178 9759012 oder +49 2202 817157 ------=_Part_2200953_1381539911.1563539379543 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable





On Monday, July 15, 2019, 9:44:24 = PM GMT+8, Holger Jakobs <holger@jakobs.com> wrote:


Hi Karg= en,

The password is the one which was set for the respective user (h= ere: postgres) in the database backend.

A fresh installation typical= ly has only one user role named postgres. The password is asked for during = the installation (in case of Windows). On Linux servers the role has no pas= sword, but is authenticated by peer, which means that you connect from a se= ssion on the database server locally to the database.

After installi= ng the EDB Postgres database on Windows, you have to start the client progr= ams with their complete path or add the directory where they reside (typica= lly C:\Program Files\Postgresql\versionNumber\bin) to the environment varia= ble %PATH%. Please check with your system administrators on how to do this.=


OK. Now I found my password from my notebook.

Using Win= dows 10 command prompt, the error said it can't find that file but the = fileName everything was correct.
Is there anything wrong with that query= ?

I also read this thread but I can't find any file open to ge= t pgAdmin4 to open my file.


https://www.postgresql.org/message-i= d/287946147.391841.1515085145687%40mail.yahoo.com

Please advise.
=
Regards,

Holger
Am 15.07.19 um 10:59 schrieb Karen Goh:


Hi Hoger,

I tried as you said. I downloaded this psql - po= stgres frontend for windows and then tried pg_dump as well as psql command = prompt.

But, they asked me for password.

May I know what kind= of password it is referring to ?

When I downloaded POSTGRESQL, it i= s saved in the program files in windows 10 but there isn't any command = line tool available.
I tried using windows 10 command prompt but it is n= ot accepting any command like I what type :
psql -U postgres -d mydb -a = -f "Filelocation\name"

Please help.

Thanks.
On M= onday, July 15, 2019, 1:32:08 PM GMT+8, Holger Jakobs <holger@jakobs.com= > wrote:


The easiest way would be using psql on the command l= ine.

Dump a little database using pg_dump with the option --data-onl= y to see what the format digestible by psql looks like.

Basically, i= t's a COPY command followed by the data in tab-separated format finishe= d by a line consisting of a backslash and a period. \.



Am 1= 5. Juli 2019 07:27:00 MESZ schrieb Karen Goh <karenworld@yahoo.com>:<= br>>Hi,
>
>I need to migrate to postgreSQL using SQL flat fi= les which contains a
>few thousands rows of data.
>
>So f= ar, I have attempted but not successful. Not sure if it can't be
&g= t;done using pgAdmin4.
>
>And posting to Stackoverflow superUse= r doesn't help as there is no
>reply at all.
>
>Hence= , I hope to get some help here.
>
>Thanks & regards,
>= ;Karen


--
Holger Jakobs, Bergisch Gladbach
+49 178 975901= 2
- sent from mobile, therefore short -


--

Holger Jak= obs, Bergisch Gladbach
instant messaging: xmpp:holger@jakobs.com
+49 = 178 9759012 oder +49 2202 817157
=20 ------=_Part_2200953_1381539911.1563539379543--