pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: acchung@mit.edu
To: pgsql-admin@postgresql.org
Subject: Re: Importing Database
Date: Mon, 24 Jun 2002 20:57:30 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGKEEBFDAA.nickf@ontko.com> (raw)
In-Reply-To: <1024932612.3d173b04c5821@webmail.mit.edu>

Well, since it is already in text format, just load it normally:

psql <database name> -f 20020422_project_summaries.gz

psql doesn't care what the name is so long as the internal format is OK.

If you want to, you can rename it. (I probably would to avoid confusion
among the humans.)

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/

> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of acchung@mit.edu
> Sent: Monday, June 24, 2002 10:30 AM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Importing Database
>
>
> Hi,
>
> I'm trying to import this database into postgresql.
> The file is called 20020422_project_summaries.gz.
> When I gunzip it, I get:
>
> postgres@E52BPS588R /Databases
> $ gunzip 20020422_project_summaries.gz
>
> gunzip: 20020422_project_summaries.gz: not in gzip format
>
> When I type less 20020422_project_summaries.gz, I get the
> text of the database of this file.  So it seems that it's already unzipped
> but has the .gz extension.  how do I import this file
> as a database into postgresql?  I'm running cygwin and pgAdmin II
> on a win2k computer.
>
> Alex
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>






view thread (4+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGKEEBFDAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGKEEBFDAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGKEEBFDAA.nickf@ontko.com

 · 

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-admin@postgresql.org
  Cc: nickf@ontko.com, acchung@mit.edu
  Subject: Re: Importing Database
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGKEEBFDAA.nickf@ontko.com>
  References: <1024932612.3d173b04c5821@webmail.mit.edu> <NEBBLAAHGLEEPCGOBHDGKEEBFDAA.nickf@ontko.com>

* 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