pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raymond O'Donnell <rod@iol.ie>
To: Archana K N <archanakknn@gmail.com>
Cc: PostgreSQLPHP PostgreSQLPHP <pgsql-php@postgresql.org>
Subject: Re:
Date: Wed, 05 Sep 2012 09:54:02 +0100
Message-ID: <5047132A.8040402@iol.ie> (raw)
In-Reply-To: <CACa6=i24LHm3zCjh5N27x77+=7-UwJ7ZZ=ugWBTCVSmsPimXWw@mail.gmail.com>
References: <CACa6=i24LHm3zCjh5N27x77+=7-UwJ7ZZ=ugWBTCVSmsPimXWw@mail.gmail.com>

On 05/09/2012 08:18, Archana K N wrote:
> I used the "Export" option in the phpPgAdmin for exporting certain 
> database and i got a zip file with .sql file inside it. I dont know
> how to import it back to postgres as i dont see any option for
> importing.

You have to use the unzipped SQL file as input to psql, thus:

  psql -f my-file.sql my-database

This is assuming that the db server is running on localhost; if not, use
the -h option to specify the host.

> I am a bit confused with the psql command prompt.

The docs are the best place to start:

http://www.postgresql.org/docs/9.1/static/app-psql.html

HTH,

Ray.


-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie




view thread (3+ messages)  latest in thread

Message-ID: <5047132A.8040402@iol.ie>
Permalink:  ../5047132A.8040402@iol.ie/
Also on:    postgresql.org/message-id/5047132A.8040402@iol.ie

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: rod@iol.ie, archanakknn@gmail.com
  Subject: Re: 
  In-Reply-To: <5047132A.8040402@iol.ie>
  References: <CACa6=i24LHm3zCjh5N27x77+=7-UwJ7ZZ=ugWBTCVSmsPimXWw@mail.gmail.com> <5047132A.8040402@iol.ie>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox