pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Geoffrey <esoteric@3times25.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: [despammed] Insert psql commands inside a script
Date: Sat, 23 Apr 2005 07:30:42 -0600
Message-ID: <20050423133042.GA21979@winnie.fuhr.org> (raw)
In-Reply-To: <426A3C74.8040309@3times25.net>
References: <2F1DE8CC97C00645B9FEA539982DA22401900D5A@USEA-EXCH4.na.uis.unisys.com>
	<20050423060538.GA19935@webserv.wug-glas.de>
	<426A3C74.8040309@3times25.net>

On Sat, Apr 23, 2005 at 08:15:48AM -0400, Geoffrey wrote:
> 
> Or you can do the following:
> 
> psql database < sqlcode
> 
> where sqlcode contains your sql.

That command redirects the standard input from the file named
sqlcode; the requirement says NOT to use an external file.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (6+ messages)  latest in thread

Message-ID: <20050423133042.GA21979@winnie.fuhr.org>
Permalink:  ../20050423133042.GA21979@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050423133042.GA21979@winnie.fuhr.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, esoteric@3times25.net
  Subject: Re: [despammed] Insert psql commands inside a script
  In-Reply-To: <20050423133042.GA21979@winnie.fuhr.org>

* 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