pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Ruprecht <chris@ruprecht.org>
To: pgsql-sql@postgresql.org
Subject: Re: data import
Date: Tue, 21 Dec 2010 11:18:00 -0500
Message-ID: <E9ABF592-83E2-4FAE-A004-936CAA49470B@ruprecht.org> (raw)
In-Reply-To: <AANLkTim1XmvAYSJJqXVbDAidh2X1N6W4PCBsTS+ybw2F@mail.gmail.com>
References: <AANLkTim1XmvAYSJJqXVbDAidh2X1N6W4PCBsTS+ybw2F@mail.gmail.com>

If your file is TAB delimited, you can simply do:

\copy tablename from 'some file'

To get details in psql, do:
psql mydatabase
and at the prompt:
\h copy



On Dec 21, 2010, at 06:34 , Viktor Bojović wrote:

> Hi,
> 
> can anyone recommend me a windows and linux free tools for importing data into postgre.
> Source files are CSV or excel.
> 
> Thanx in advance
> -- 
> ---------------------------------------
> Viktor Bojović
> ---------------------------------------
> Wherever I go, Murphy goes with me




view thread (5+ messages)  latest in thread

Message-ID: <E9ABF592-83E2-4FAE-A004-936CAA49470B@ruprecht.org>
Permalink:  ../E9ABF592-83E2-4FAE-A004-936CAA49470B@ruprecht.org/
Also on:    postgresql.org/message-id/E9ABF592-83E2-4FAE-A004-936CAA49470B@ruprecht.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: chris@ruprecht.org
  Subject: Re: data import
  In-Reply-To: <E9ABF592-83E2-4FAE-A004-936CAA49470B@ruprecht.org>

* 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