From: Tomasz Myrta <jasiek@klaster.net>
To: andres javier garcia garcia <andresjavier.garcia@wanadoo.es>
Cc: PostgreSQL List <pgsql-sql@postgresql.org>
Subject: Re: Basic question.
Date: Thu, 24 Oct 2002 11:14:27 +0200
Message-ID: <3DB7B9F3.2000209@klaster.net> (raw)
References: <200210240812.g9O8Cdc12687@natura.cebas.csic.es>
> And. If I'm not connected to any database. Can I execute a file that makes a
> query on a database?
Sorry, I made a mistake
psql -f <filename> -U <user> <database>
I'm not sure, but you can add export PGPASSWORD=<password> before this
command if you need a password.
Tomasz Myrta
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: jasiek@klaster.net, andresjavier.garcia@wanadoo.es
Subject: Re: Basic question.
In-Reply-To: <3DB7B9F3.2000209@klaster.net>
* 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