From: Kaare Rasmussen <kar@webline.dk>
To: psql sql <pgsql-sql@postgresql.org>
Cc: psql Admin <pgsql-admin@postgresql.org>
Cc: psql sql <pgsql-sql@postgresql.org>
Subject: Re: [SQL] Running a file
Date: Mon, 25 Dec 2000 15:03:37 +0100
Message-ID: <00122515033702.30396@bering> (raw)
In-Reply-To: <Pine.LNX.4.30.0012241222330.30938-100000@chapelperilous.net>
References: <Pine.LNX.4.30.0012241222330.30938-100000@chapelperilous.net>
> 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.
If it's to be used in shell scripts, it's just as easy to pipe:
psql dbname<create_table.sql
--
Kaare Rasmussen --Linux, spil,-- Tlf: 3816 2582
Kaki Data tshirts, merchandize Fax: 3816 2501
Howitzvej 75 Åben 14.00-18.00 Email: kar@webline.dk
2000 Frederiksberg Lørdag 11.00-17.00 Web: www.suse.dk
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-sql@postgresql.org
Cc: kar@webline.dk, pgsql-admin@postgresql.org
Subject: Re: [SQL] Running a file
In-Reply-To: <00122515033702.30396@bering>
References: <Pine.LNX.4.30.0012241222330.30938-100000@chapelperilous.net> <00122515033702.30396@bering>
* 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