Skip site navigation (1) Skip section navigation (2)

Re: Sample databases

From: "David Rowley" <dgrowley(at)gmail(dot)com>
To: "'Tommy Gibbons'" <tomgig(at)gmail(dot)com>,<pgsql-general(at)postgresql(dot)org>
Subject: Re: Sample databases
Date: 2008-09-29 22:11:04
Message-ID: 81CF3E1FCBDE474FBCBEDFEBAE68FD3B@amd64 (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Tommy Gibbons wrote:

>I would like some pointers as to how to install the dbsamples so that I can
use them in Postgres.  These .tar.qz files seem to contain *.sql files.
These seem to be text files but I do not understand how to > import to
postgres or if there is some command line command to run.

> These samples are on


You can use psql to import .sql files. Once your logged into psql you can \i
<filename> to import the files. Have a look at the other options too with \?

You may wish to create a database before importing the files, see



In response to

pgsql-general by date

Next:From: Greg SmithDate: 2008-09-29 22:14:53
Subject: Re: database question
Previous:From: Raymond O'DonnellDate: 2008-09-29 22:09:55
Subject: Re: Sample databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group