From: Rob Sargent <robjsargent@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: arden liu <ardenbook@gmail.com>
Cc: pgsql-generallists.postgresql.org <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 08:36:25 -0600
Message-ID: <BF2A70F4-3C06-4D70-A332-67FC29DBCE57@gmail.com> (raw)
In-Reply-To: <CAKFQuwZskCXrq9RnOtvn7F-9ZeNBohKy5dsFfvWykCfC_gTCog@mail.gmail.com>
References: <CAKFQuwZskCXrq9RnOtvn7F-9ZeNBohKy5dsFfvWykCfC_gTCog@mail.gmail.com>
> On Apr 5, 2020, at 8:24 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:
>
>
>> On Sun, Apr 5, 2020 at 5:50 AM arden liu <ardenbook@gmail.com> 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?
>
> If you can manually execute incremental portions of the file until the final statement introduces the problem I'll be happy to try and explain what may be wrong with that statement or portion of the file.
>
> Removing stuff instead of just commenting it out is recommended.
>
> David J.
>
Or change your semi-colons into \p\g and perhaps we’ll see the lasting thing run. =
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: robjsargent@gmail.com, david.g.johnston@gmail.com, ardenbook@gmail.com
Subject: Re: psql show me the : and ask user input, when running one sql file
In-Reply-To: <BF2A70F4-3C06-4D70-A332-67FC29DBCE57@gmail.com>
References: <CAKFQuwZskCXrq9RnOtvn7F-9ZeNBohKy5dsFfvWykCfC_gTCog@mail.gmail.com> <BF2A70F4-3C06-4D70-A332-67FC29DBCE57@gmail.com>
* 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