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 1jmLgB-0001Nb-MU for pgsql-admin@arkaria.postgresql.org; Fri, 19 Jun 2020 18:23:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jmLgA-0003mV-BU for pgsql-admin@arkaria.postgresql.org; Fri, 19 Jun 2020 18:23:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmLg8-0003mK-Ra; Fri, 19 Jun 2020 18:23:54 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmLg4-00075I-PJ; Fri, 19 Jun 2020 18:23:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 240A75C0087; Fri, 19 Jun 2020 14:23:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 19 Jun 2020 14:23:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=J Z8ECoYBJWcKmxT8tQK2ZciO+mpV+enxbn7whIrrzAg=; b=JUpJY8KDzE7viU/qe vmGj8tBKk1pZYdQqy5UHUyUaKcWChtvg6bKCQKyyMsZ0U6oH6Q3tyA/fgwa6sreI l9sT7ybcaEoBfal2R/VixLlbuyKmJbnGHYZOICDhGWEcq3bABIZma0n6JWqr/6wu Ore+DOqMojy1eDYeIbaSADDQyvzw5CByvBpfrgaxeQXVAZcdE1oebUxZIBJrI32y IPa841OqZDQH/l98/kdyYjgGAr3+2Wbht1C3zF6JzwtFd1XJG0l7zBXGcw2N4h04 EoU/3D1ms4vi/8wKC16OzEevDsT/EcuhzBLdh2G+2SOv4ghFXlySn2unzH6RhfNm 5++FQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; bh=JZ8ECoYBJWcKmxT8tQK2ZciO+mpV+enxbn7whIrrz Ag=; b=utteozURv6gZKVuoNf0f51IoHl2v28WtXLz+Tc9CxlumAmEDPu26zeUpk aQ0nxwjYP5Z0h1mn+H5OtQvnGjAXvbavOS+JjqiRbcVV/EhNFx36m4gdydRpzBJ+ VW9sKoBKKx6rXpZ7YCtzW+pn1MqMwH3/51uVDCSc3BASqhYEE+1yRMNDwE/Rou6q wR5bTMXyoLcqP2PtM42+ynU8oPQ1OuUv+AK9zYUJLY1rE48MwEHXNqGwzJ9RN8Qz sqxhznT9RhohyMr4J3R9snSd5T9il8KvQre1rySeDW/fHbr2rov86xkB7/JS8rps UEGvSjhHWy4tB1lIF1wsR7I1At4IQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejiedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepveevfeevfeeugeffkeekhfegieeufffgteeujedv gffhueejjefhkeejleegtdegnecukfhppeejhedrudejvddrhedrvdefudenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 05B233061856; Fri, 19 Jun 2020 14:23:35 -0400 (EDT) Subject: Re: create batch script to import into postgres tables To: cgerard999@gmail.com, Pepe TD Vo Cc: "David G. Johnston" , Christopher Browne , Pgsql-admin , Pgsql-general References: <1278700189.536786.1592579255754@mail.yahoo.com> <8489125B-1921-4C14-AB31-16A05AEDF6D4@gmail.com> From: Adrian Klaver Message-ID: Date: Fri, 19 Jun 2020 11:23:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <8489125B-1921-4C14-AB31-16A05AEDF6D4@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/19/20 8:30 AM, cgerard999@gmail.com wrote: > There is an alternate solution, which is to launch pgadmin GUI, connect > to the database, tick « save password » > Then psql won’t prompt fir password any more. Pretty sure that is only within the context of pgAdmin. > Pay however attention to the security concern. > > Sent from my mobile phone > >> Le 19 juin 2020 à 17:07, Pepe TD Vo a écrit : >> >>  >> appreciate for clarification, all inputs and teaching me more in >> PostgreSQL >> >> have a good weekend and happy father's day to all who is Father. >> >> v/r, >> >> ** >> *Bach-Nga >> >> *No one in this world is pure and perfect.  If you avoid people for >> their mistakes you will be alone. So judge less, love, and forgive >> more.EmojiEmojiEmoji >> To call him a dog hardly seems to do him justice though in as much as >> he had four legs, a tail, and barked, I admit he was, to all outward >> appearances. But to those who knew him well, he was a perfect >> gentleman (Hermione Gingold) >> >> **Live simply **Love generously **Care deeply **Speak kindly. >> *** Genuinely rich *** Faithful talent *** Sharing success >> >> >> >> >> On Friday, June 19, 2020, 10:57:59 AM EDT, Adrian Klaver >> wrote: >> >> >> On 6/19/20 7:52 AM, David G. Johnston wrote: >> > On Fri, Jun 19, 2020 at 6:58 AM Adrian Klaver >> >> > > >> wrote: >> > >> >    On 6/19/20 6:53 AM, Pepe TD Vo wrote: >> >      > Thank you sir and I am sorry for the typo not having "--" on >> >    password. >> >      > I did spelling out with --password=mypassword >> > >> >    Please go back and read my post again. >> > >> > >> > To be clear, there is no way to supply a password as a command line >> > argument.  It is fundamentally a bad idea and we don't even make it an >> > option. >> >> Actually that is not entirely true, see my follow up post. >> >> > >> > You need to decide on one of the actual ways of supplying a >> password, or >> > choose an alternative authentication method like peer. >> > >> > David J. >> >> > >> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com >> >> -- Adrian Klaver adrian.klaver@aklaver.com