Re: [SQL] Running a file

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: Thomas SMETS <tsmets(at)altern(dot)org>
Cc: psql Admin <pgsql-admin(at)postgresql(dot)org>, psql sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [SQL] Running a file
Date: 2000-12-24 17:24:21
Message-ID: Pine.LNX.4.30.0012241222330.30938-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

On Sun, 24 Dec 2000, Thomas SMETS wrote:

> I'm runnin postgres 7.?? (Last RPM package available from the site).
>
> I want to create a few DB creation scripts so I can "publish" that
> afterwards.
> On Oracle there's a such possibility but I haven't seen anything
> comaprable in the docs ...
> I however think I'm missing one of the very first possibility of
> "pgsql".
> Could someone point me were I could find some more infos on that matter
> ?

Are you talking about writing external scripts and importing them into
Postgres in a manner similar to the @ function in SQL*Plus? In psql, you
can use \i to import scripts to do that.

-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Reading is to the mind what exercise is to the body.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2000-12-25 03:50:17 Re: Is that a bug?
Previous Message xyzii 2000-12-24 16:57:26 pg_dumap not include foreign key...

Browse pgsql-sql by date

  From Date Subject
Next Message Kaare Rasmussen 2000-12-25 14:03:37 Re: [SQL] Running a file
Previous Message Marcel Schaible 2000-12-24 16:31:31 How to debug pgpsql functions