Re: How do I import a sql file into pgAdmin4 ?

From: nikhil raj <nikhilraj474(at)gmail(dot)com>
To: Holger Jakobs <holger(at)jakobs(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: How do I import a sql file into pgAdmin4 ?
Date: 2019-07-15 06:49:38
Message-ID: CAG1ps1xfKYCCaBTE0_mo7BaSgmvUF5yBPEmuWr3gfoG57A0JCQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

HI,

If you are migrate through PSQL shell by using \i and the path.

* Note before restoring connect to the databases and migrate it.

On Mon, Jul 15, 2019 at 11:02 AM Holger Jakobs <holger(at)jakobs(dot)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(at)yahoo(dot)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 -
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Karen Goh 2019-07-15 08:59:21 Re: How do I import a sql file into pgAdmin4 ?
Previous Message Holger Jakobs 2019-07-15 05:31:29 Re: How do I import a sql file into pgAdmin4 ?