Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBU2ABL59735 for ; Fri, 29 Dec 2000 21:10:11 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from bering.webline.dk (83.adsl0.kh.worldonline.dk [213.237.10.83]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBPE1mL57732; Mon, 25 Dec 2000 09:01:48 -0500 (EST) (envelope-from kar@webline.dk) Received: from localhost (localhost [[UNIX: localhost]]) by bering.webline.dk (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) id eBPE3bG30787; Mon, 25 Dec 2000 15:03:37 +0100 From: Kaare Rasmussen Date: Mon, 25 Dec 2000 15:03:37 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="US-ASCII" Cc: psql Admin , psql sql To: psql sql References: In-Reply-To: Subject: Re: [SQL] Running a file MIME-Version: 1.0 Message-Id: <00122515033702.30396@bering> Content-Transfer-Encoding: 8bit X-Archive-Number: 200012/167 X-Sequence-Number: 364 > 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