Re: [SQL] Running a file - Mailing list pgsql-admin

From Kaare Rasmussen
Subject Re: [SQL] Running a file
Date
Msg-id 00122515033702.30396@bering
Whole thread Raw
In response to Re: [SQL] Running a file  ("Brett W. McCoy" <bmccoy@chapelperilous.net>)
List pgsql-admin
> 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

pgsql-admin by date:

Previous
From: "Todd R. Eigenschink"
Date:
Subject: Re: Is that a bug?
Next
From: Tom Lane
Date:
Subject: Re: [SQL] Toad version for PostgreSQL