pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Clarke <tim.clarke@minerva.info>
To: pgsql-general@lists.postgresql.org
Subject: Re: psql show me the : and ask user input, when running one sql file
Date: Sun, 5 Apr 2020 14:46:10 +0100
Message-ID: <a628d3b1-86cf-0090-7f2b-9e9d2b80fbab@minerva.info> (raw)
In-Reply-To: <CAK0Kdkmw2buewJ1cW02XJM+D2mWz_vd+5k7xZ4ctPkjbFSdiwA@mail.gmail.com>
References: <CAK0Kdkmw2buewJ1cW02XJM+D2mWz_vd+5k7xZ4ctPkjbFSdiwA@mail.gmail.com>

Arden

Your first argument is a JDBC connection string (see here
https://jdbc.postgresql.org/documentation/80/connect.html). To provide
the details when using the command line psql command, use the -h, -p and
-U parameters (https://www.postgresql.org/docs/12/app-psql.html)

Tim Clarke
IT Director
Direct: +44 (0)1376 504510 | Mobile: +44 (0)7887 563420

On 05/04/2020 13:50, arden liu wrote:
> I am using psql to run this sql
> file(https://github.com/Arelle/Arelle/blob/master/arelle/plugin/xbrlDB/sql/public/xbrlPublicPostgresDB.dd...)
> here is my command:
> /usr/bin/psql postgresql://db_user:dbpassword@localhost:5432/my_db -f
> /tmp/xbrlPublicPostgresDB.ddl
> I do not know why it show me the : , which is asking me to input
> something.
> Can someone help me?
> Thanks.
> Arden


Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankfurt: +49 (0)69 7191 6000 | Hong Kong: +852 5803 1687 | Toronto: +1 647 503 2848
Web: https://www.manifest.co.uk/



Minerva Analytics Ltd - A Solactive Company
9 Freebournes Court | Newland Street | Witham | Essex | CM8 2BL | United Kingdom

________________________________

Copyright: This e-mail may contain confidential or legally privileged information. If you are not the named addressee you must not use or disclose such information, instead please report it to admin@minerva.info<mailto:admin@minerva.info>
Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Registered in England Number 11260966 & The Manifest Voting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here https://www.manifest.co.uk/legal/ for further information.





view thread (16+ messages)  latest in thread

Message-ID: <a628d3b1-86cf-0090-7f2b-9e9d2b80fbab@minerva.info>
Permalink:  ../a628d3b1-86cf-0090-7f2b-9e9d2b80fbab@minerva.info/
Also on:    postgresql.org/message-id/a628d3b1-86cf-0090-7f2b-9e9d2b80fbab@minerva.info

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tim.clarke@minerva.info
  Subject: Re: psql show me the : and ask user input, when running one sql file
  In-Reply-To: <a628d3b1-86cf-0090-7f2b-9e9d2b80fbab@minerva.info>
  References: <CAK0Kdkmw2buewJ1cW02XJM+D2mWz_vd+5k7xZ4ctPkjbFSdiwA@mail.gmail.com> <a628d3b1-86cf-0090-7f2b-9e9d2b80fbab@minerva.info>

* 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