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 1jL6Yl-0001S7-K2 for pgsql-general@arkaria.postgresql.org; Sun, 05 Apr 2020 14:47:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jL6Yj-00014V-Eb for pgsql-general@arkaria.postgresql.org; Sun, 05 Apr 2020 14:47:37 +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 1jL5bj-0002Ac-S4 for pgsql-general@lists.postgresql.org; Sun, 05 Apr 2020 13:46:40 +0000 Received: from mail-eopbgr100109.outbound.protection.outlook.com ([40.107.10.109] helo=GBR01-LO2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jL5bL-0000FF-2e for pgsql-general@lists.postgresql.org; Sun, 05 Apr 2020 13:46:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XChs1Q7pPSkebSt2nDe0NG3PMittu792EqtVNZCpmvUBQrJUh34/fkXUpPVh97GoPYjTGUQQMVDKgYiQ5T5oA1I3/T/IP4BHUZj3wrlv8ERo8ur/AXBinyeWgo9GnJ7XncjOv/rP3ZJga/NpgqGrqgls8X5T/SG5eZw3rsxe9eU9cZpN1kDa3NFRzmH2QVlCH7iA+2454uYNiKBh7W2Ngvf+7yF15lADtzHTTNjh6B0ZC1yk8gqG+6bfktCw/2JJ0DF3Xy6+ka315pK4mAUHXSEnqLLSlaet0WUT3ZcrrFGfxITqAjyP62PN/LBiFrrVaBNXE+2ME1o6jcA6dzNbeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OAsH0QZ3PvvhdhRf1MpTXK3ReEpEVuHp5BKxDrPXj0k=; b=HvvGlNm+0MlBkH7TPxOaprh66a9evJgC3yNcH/xVpfMfv/IOUfheOsxAYgGdIB1Fup/n7/NpMlXApN0vS41gQzrP3AwZKA8r3J24sfzGIoOLTgTN+ZlRDkT+H7okKVoPhwxA58yopr61HvLgVlcw4hyv4BdsTb27UEF8OtDgQnZnFo5yfY0iIgWCnluoVn6HfSU8lGeC/0svWHf+8WUOWzDZMUV6jHIaPdcps6sml9jzT8O6KIyukMGMT78ifYq8Q7NfZOn7AP3dKGsIUcAazyJLIDJIHeGG1zpdpVbLvZ+B4qNjzJFFJ5zMTEQ8SHZ+RKauGN6pCeEsgO01+yU4GQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=minerva.info; dmarc=pass action=none header.from=minerva.info; dkim=pass header.d=minerva.info; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=minervaesg.onmicrosoft.com; s=selector2-minervaesg-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OAsH0QZ3PvvhdhRf1MpTXK3ReEpEVuHp5BKxDrPXj0k=; b=FcJtmAUsq97mjPngoA0VZDQBic+PgnyOaWFExLXfkTUrUrOhRVf93clGYoxUw1gLQoWth9v4bCfMdgzcr1AzSYAzcWp1+AwX8aNPoqZr07LMhy4xFMCiXMH/lRGc/txcUxChoCReb1k3NDW+4MM+fxAWo6mGRk4UxUbzJUfWg6M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tim.clarke@minerva.info; Received: from CWLP123MB3537.GBRP123.PROD.OUTLOOK.COM (20.181.75.10) by CWLP123MB3091.GBRP123.PROD.OUTLOOK.COM (20.180.146.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Sun, 5 Apr 2020 13:46:11 +0000 Received: from CWLP123MB3537.GBRP123.PROD.OUTLOOK.COM ([fe80::a860:8a75:e814:19c3]) by CWLP123MB3537.GBRP123.PROD.OUTLOOK.COM ([fe80::a860:8a75:e814:19c3%2]) with mapi id 15.20.2878.021; Sun, 5 Apr 2020 13:46:11 +0000 Subject: Re: psql show me the : and ask user input, when running one sql file To: pgsql-general@lists.postgresql.org References: From: Tim Clarke X-Opacus-Archived: none Organization: Minerva Analytics Ltd Message-ID: Date: Sun, 5 Apr 2020 14:46:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-GB X-ClientProxiedBy: LO2P265CA0065.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::29) To CWLP123MB3537.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:6c::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from timc-7773.free1.local (2.100.74.165) by LO2P265CA0065.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Sun, 5 Apr 2020 13:46:11 +0000 X-Opacus-Archived: none X-Originating-IP: [2.100.74.165] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 43869f2f-f7aa-4df7-a7d5-08d7d967b3ab X-MS-TrafficTypeDiagnostic: CWLP123MB3091: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWLP123MB3537.GBRP123.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(10019020)(136003)(366004)(376002)(346002)(39830400003)(396003)(6506007)(86362001)(66556008)(66476007)(66946007)(31696002)(31686004)(6512007)(53546011)(6486002)(52116002)(186003)(36916002)(26005)(2906002)(16526019)(966005)(8936002)(6916009)(36756003)(956004)(2616005)(508600001)(5660300002)(81166006)(316002)(8676002)(44832011)(81156014)(45842010)(19956002)(6606295002);DIR:OUT;SFP:1102; Received-SPF: None (protection.outlook.com: minerva.info does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JJKDSmfU2ohIf0qOM6hx1dzXPjP29MO8TmPg2mWeL8q9LINOkngIxYJgMtINFX4eBT7vBq28Ct8VD11wWzIfLNPI48hWbo8QEw03+UATZUDLhvc77CmyZYdt6C0PlDdRZuYSVnMP1ToSeNmOOTzou1Zy3Wc9CSrv5HQ2UMIJKdOSb8w2cAictZJXQ1FzM5CKqSlK7asl+grMzzel59zsG7m9wdKKrS6O0tlajbulxXfilZHq3E4bURX4Qaqolz6t4/4HUdNh3SlHHoD5Fx/gl0exSS0B6hszaDNxwTQXFvkGq5HSXmXOV2onPMs6iZ6wTX+4voJLQLGF5tdYLm5aFqNRVEmXyKyYLNQinUoSdMXjagkGzukGYCaQ7/O94w0ONwsMb322qP3r22RLiP1T6oQ9PYEVVfVKkuhX8r2ReTLn9aw8xwBm8c41+bRUcYqnuTxdWS0xalu/Vil9BI5zSutkdl6iJVcxoutLuhmnEOLuu5KpT66AhW/vmPd/59F8g1KfELY+7s2xbauc6Pn3YlSid2H+iKiSHPDd+0A7PvfdhjWaiD5iAML9uIj4cLdx1JK9zoFoeemuhkW9GEYdWGKZhhbNQvjFkp0HJ3WMtfTonGv75MbDcjwQ9bkxJcjT X-MS-Exchange-AntiSpam-MessageData: r6PkY26a3O6KAgBpbogKA+VsNmxwrQfjecWxoui7hDHr+4YJp15Y51nzF7O3EuqYsWSnouPANDp6qQ+kiStwsUmyaoOhtEpKyjZkAfrUgl7jKGbcoj8ihdkCUb63SUG6i/ZrPXmA57weMRHkIjyFLg== X-OriginatorOrg: minerva.info X-MS-Exchange-CrossTenant-Network-Message-Id: 43869f2f-f7aa-4df7-a7d5-08d7d967b3ab X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2020 13:46:11.6748 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0316a1f9-91d0-4449-95da-7e8dd555cc52 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZvzAylsw1GWgyNE/i5qBxgddRl03S+c/ciM5T8+W3zbdUUGYd36I0zxeNprDcEt0IVivbKa7mUhDLUA/PwF4VQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP123MB3091 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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/sq= l/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? > Thanks. > Arden Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankf= urt: +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 Ki= ngdom ________________________________ Copyright: This e-mail may contain confidential or legally privileged infor= mation. If you are not the named addressee you must not use or disclose suc= h information, instead please report it to admin@minerva.info Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Reg= istered in England Number 11260966 & The Manifest Voting Agency Ltd: Regist= ered in England Number 2920820 Registered Office at above address. Please C= lick Here https://www.manifest.co.uk/legal/ for further information.