Re: How do I import a sql file into pgAdmin4 ? - Mailing list pgsql-admin

From Karen Goh
Subject Re: How do I import a sql file into pgAdmin4 ?
Date
Msg-id 325397478.730265.1563181161656@mail.yahoo.com
Whole thread Raw
In response to Re: How do I import a sql file into pgAdmin4 ?  (Holger Jakobs <holger@jakobs.com>)
Responses Re: How do I import a sql file into pgAdmin4 ?  (Holger Jakobs <holger@jakobs.com>)
Re: How do I import a sql file into pgAdmin4 ?  (Holger Jakobs <holger@jakobs.com>)
List pgsql-admin



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 <holger@jakobs.com> 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 <karenworld@yahoo.com>:
>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 -


pgsql-admin by date:

Previous
From: nikhil raj
Date:
Subject: Re: How do I import a sql file into pgAdmin4 ?
Next
From: Holger Jakobs
Date:
Subject: Re: How do I import a sql file into pgAdmin4 ?