Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL6O1-0001EQ-AD for pgsql-general@arkaria.postgresql.org; Sun, 05 Apr 2020 14:36:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jL6Nz-0000v5-FF for pgsql-general@arkaria.postgresql.org; Sun, 05 Apr 2020 14:36:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL6Nz-0000uq-4y for pgsql-general@lists.postgresql.org; Sun, 05 Apr 2020 14:36:31 +0000 Received: from mail-il1-x144.google.com ([2607:f8b0:4864:20::144]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jL6Nx-0000h3-2C for pgsql-general@lists.postgresql.org; Sun, 05 Apr 2020 14:36:30 +0000 Received: by mail-il1-x144.google.com with SMTP id a6so12206348ilr.4 for ; Sun, 05 Apr 2020 07:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=ggvthpRC/p4+whYpY/Qu9NSy66N4YUqmXTIe4vOsgKU=; b=XQ9e8qjntK5tT0e6ToonAUV30Ct9ua7XpjI+i7n199uB8TJWbxbz5oaWDY97wi6Azm aLHqSeIkcPGcaM301QlEIyZK4gIZdZE40RSWjkbttfWccSH9AAPpYJwIG3NX30GE7Maa ifU3YRZtEy3Vy70xMKGqWbniw+bZYsBR+BnfkB0h4d/6cGQP87XGBV9bw/mkJyFlz77K IQr2Kti/e2yNzA5dGDGUEkvATk/M5WlPGkhrdZJqfREkzVPfL6tUh7wGzqP9Vp98Bw/p qFy+lnYnbG6HtPBD76RhRvoNJt0H6ul0mdkQgRLBAP55yvjt+kMta0aFQ+G9h1cDuK2e cVOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=ggvthpRC/p4+whYpY/Qu9NSy66N4YUqmXTIe4vOsgKU=; b=MLOc9aZ61WsYafyLbTpxQVW7m0hR+zpa4qeSbeIhdksXaNdb42YDCyKikmHwZV0SFW Dfk30pITakIfFVo0l3oR5a+BF72kQ60p/PRjYwRT0+iqsxJC54lFZ+irO7LOLPfqfoCg xCe1bT4x/XetkM3YVZT+sRyAVfacxbzRhJSEcs/zgjfhWTJR8sZoOnT+J8Erv95/b63r ilehd4guSeNSwMeDZmDynr0xjK/S4EjfJDgp4DxlcBqx9hJzg+1SO4aiOsyX++LwQ78W lUfpzckjcIwOGahTW0yrHaGxmFriZCfS29tX5fdBzwOcQJe9JXH6i8Fm4cAUdgMrU8TG 3KoQ== X-Gm-Message-State: AGi0PuakCGNxxGuz0waYlUr8zceunx6n28FKOPNeac2RmG5nV2n42YJS uPJwi9Ix2jYqfy2atBenLcCwTXBHTn4= X-Google-Smtp-Source: APiQypKCrQaEp58C2b5bney4iAJC7+HyY/3Ud/RDtsrBZmOKq8YLHt463OkqZsx7/yjagFJrnDQZ7Q== X-Received: by 2002:a05:6e02:811:: with SMTP id u17mr16703454ilm.93.1586097387613; Sun, 05 Apr 2020 07:36:27 -0700 (PDT) Received: from [192.168.1.144] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id k18sm4363705ios.18.2020.04.05.07.36.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Apr 2020 07:36:27 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-9CF6B4E7-2699-4F65-9EE2-C69BB033FBCB Content-Transfer-Encoding: 7bit From: Rob Sargent Mime-Version: 1.0 (1.0) 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: References: Cc: arden liu , "pgsql-generallists.postgresql.org" In-Reply-To: To: "David G. Johnston" X-Mailer: iPhone Mail (17D50) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-9CF6B4E7-2699-4F65-9EE2-C69BB033FBCB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Apr 5, 2020, at 8:24 AM, David G. Johnston = wrote: >=20 > =EF=BB=BF >> On Sun, Apr 5, 2020 at 5:50 AM arden liu wrote: >> I am using psql to run this sql file(https://github.com/Arelle/Arelle/blo= b/master/arelle/plugin/xbrlDB/sql/public/xbrlPublicPostgresDB.ddl) >> here is my command: >> /usr/bin/psql postgresql://db_user:dbpassword@localhost:5432/my_db -f /tm= p/xbrlPublicPostgresDB.ddl >> I do not know why it show me the : , which is asking me to input somethin= g.=20 >> Can someone help me? >=20 > If you can manually execute incremental portions of the file until the fin= al statement introduces the problem I'll be happy to try and explain what ma= y be wrong with that statement or portion of the file. >=20 > Removing stuff instead of just commenting it out is recommended. >=20 > David J. >=20 Or change your semi-colons into \p\g and perhaps we=E2=80=99ll see the lasti= ng thing run.=20= --Apple-Mail-9CF6B4E7-2699-4F65-9EE2-C69BB033FBCB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Apr 5, 2020, at 8:24 AM, David G. Johnston= <david.g.johnston@gmail.com> wrote:

=EF=BB=BF
On Sun, Apr 5, 2= 020 at 5:50 AM arden liu <ardenboo= k@gmail.com> wrote:
=
I am using= psql to run this sql file(https://github.com/Arelle/Arelle/blob/mas= ter/arelle/plugin/xbrlDB/sql/public/xbrlPublicPostgresDB.ddl)
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 some= thing.
Can someone help me?

=
If you can manually execute incremental portions of the file until t= he final statement introduces the problem I'll be happy to try and explain w= hat 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=E2=80=99ll see the lasting thing run. 
= --Apple-Mail-9CF6B4E7-2699-4F65-9EE2-C69BB033FBCB--