Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] command

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Florian Litot <flitot(at)besancon(dot)sema(dot)slb(dot)com>
Cc: Pgsql-Cygwin <pgsql-cygwin(at)postgresql(dot)org>,Pgsql-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] command
Date: 2002-11-07 16:54:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-cygwinpgsql-hackers
On Tue, 5 Nov 2002, Florian Litot wrote:

> what is the command to launch a sql script not in psql
> thanks

without actually being IN psql, you can use it to run one line scripts 
like this:

psql dbname -c -- 'single query goes here'

or you can run a large file full of sql queries like this:

psql dbname -f filename.sql

In response to

  • command at 2002-11-05 14:19:44 from Florian Litot

pgsql-cygwin by date

Next:From: Darko PrenosilDate: 2002-11-07 17:37:38
Subject: Re: [HACKERS] command
Previous:From: Andrew SullivanDate: 2002-11-07 15:12:27
Subject: Re: command

pgsql-hackers by date

Next:From: Olivier PRENANTDate: 2002-11-07 17:02:51
Subject: Re: [HACKERS] PostgreSQL supported platform report and a
Previous:From: Larry RosenmanDate: 2002-11-07 16:45:13
Subject: Re: [HACKERS] PostgreSQL supported platform report and a

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group