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 1jL8PV-00046p-LD for pgsql-general@arkaria.postgresql.org; Sun, 05 Apr 2020 16:46:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jL8PT-0004GM-R2 for pgsql-general@arkaria.postgresql.org; Sun, 05 Apr 2020 16:46:11 +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 1jL8PT-0004GF-EB for pgsql-general@lists.postgresql.org; Sun, 05 Apr 2020 16:46:11 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL8PR-0001eK-0v for pgsql-general@lists.postgresql.org; Sun, 05 Apr 2020 16:46:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 089E75C0120; Sun, 5 Apr 2020 12:46:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 05 Apr 2020 12:46:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=s pZnvB9d34EWj8FkXL4QyBwBcJ2nFY28pdx9rlPfMm8=; b=cLY+HcH1eMudzHIW2 Z3PxSw0SkleZZLGe7Ppd0KZpg1pH5flYLhlFxxLD/s3ce9OSfY+gFgRIDKAnoLAg fbDM+1In+UACvR3gQt5iPe0uG1sX+yvOdlAm6oHVhHXiNFQ7SSdQdZE6Ean5eG+i 2v5CsmTUF/AlpRMWgkWRDTiSwIZWVbCH+Rh/+bJ+9lxi/8bnBaA/9HzTwDh0M4zK B88fLUCH0iNW93Pu8554gDqOgsFgHOIDuY25y41LQhouyxhODMsBrN8Gcw060R9j kf+V2H5j4It6FckIg40DjQTkgHUggsoexjl57h/IbNnuWWyHkfhUvqDN8H4x4p2G oLYJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=spZnvB9d34EWj8FkXL4QyBwBcJ2nFY28pdx9rlPfM m8=; b=cNM6CiglWWB5xSV8rWvT4I5TExzJuEUZYQhgyhLKwq7E5a9xT8RQBSKqA Q9TrDQvz2WTaMwE/kRnUTTD+T78ylSYBY/cozfCgniOlfT/ULwsOsO+Vja3Cb+w2 JB7fRQ+Sijo9a2Z1bOurSYTIJJldwAvPmfKOwEVlZz1CbuoWw9XfUeFmL08ogn5Q ofUsD2g8LlXJtn96x+S9khxRiyk+dx+3divUR6Y8KzVmZdr00y0mNlgOpAJKzVM4 Gt0JOA8DYsY0X64YKO8x0pLs0j8jB2iqOxOY1NKWJolmfI79PnY6O7OoSgNnjBTn MsI5dIlxg5VjIEUKfDWAqSmKQZ0ig== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddugddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehgihhthhhusgdrtg homhenucfkphepjeehrddujedvrdeltddrledvnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (75-172-90-92.tukw.qwest.net [75.172.90.92]) by mail.messagingengine.com (Postfix) with ESMTPA id 504AA306D275; Sun, 5 Apr 2020 12:46:07 -0400 (EDT) Subject: Re: psql show me the : and ask user input, when running one sql file To: arden liu , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <86019357-d505-846a-40e4-76e90926e029@aklaver.com> Date: Sun, 5 Apr 2020 09:46:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/5/20 5:50 AM, 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.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 something. > Can someone help me? Well I ran the file(basically a modified dump file) and what I found is it: 1) Hung on: INSERT INTO industry (industry_id, industry_classification, industry_code, industry_description, depth, parent_id) VALUES ... RETURNING industry_id; INSERT 0 4333 and INSERT INTO industry_level (industry_level_id, industry_classification, ancestor_id, ancestor_code, ancestor_depth, descendant_id, descendant_code, descendant_depth) VALUES ... RETURNING industry_level_id; INSERT 0 9326 2) It did not hang on: INSERT INTO industry_structure (industry_structure_id, industry_classification, depth, level_name) VALUES ... RETURNING industry_structure_id; INSERT 0 13 3) For the hung cases all the INSERTS completed, I just needed to hit any key to get the next INSERT statement to kick off. 4) I don't see anything wrong the statements, so I am wondering if it is a shell issue? > Thanks. > Arden -- Adrian Klaver adrian.klaver@aklaver.com