Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vtamn-00H7aT-0g for pgpool-general@arkaria.postgresql.org; Sat, 21 Feb 2026 00:23:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vtamm-009ScN-0I for pgpool-general@arkaria.postgresql.org; Sat, 21 Feb 2026 00:23:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vtaml-009ScF-2z for pgpool-general@lists.postgresql.org; Sat, 21 Feb 2026 00:23:51 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vtami-00000000RQa-3i7B for pgpool-general@lists.postgresql.org; Sat, 21 Feb 2026 00:23:51 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-482f454be5bso33951435e9.0 for ; Fri, 20 Feb 2026 16:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771633423; cv=none; d=google.com; s=arc-20240605; b=PFGAFAhjW2A701a8Rq0e0Kg9PlnetHA9v6y0aQh3yD1Iw4gXNoUt8TPZSKr+vxplk9 mxsz/PLs2Cy08/BHTcu0npmfCNcQe0d2UoloHRD4BQk6iJubeHuX3uAtoJV+gHuBepUP IrVO2I+GnSaBjlX7tguSevNpUqH5cIMlW1Cm5gl5g+Om6PuqbbSCCIqUjYvh7CRH9qZ5 8UTpijZOUKT7SdKMKuBqI4U0HrHnRv5waACGg/wJ1BjXs7on1+6rqHmUfbilXx8MX51B 5IYk0hqqH/nGoLUxUdTuuBkkMlueQisQVFeXZ5u/1WPA/9rJrrCPSgypUOQxuoKFv3FK FD+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=A78A4NrR257gTea/j+7Ov/1XuflDTzvjaz73Pkh0ykA=; fh=xMMdjGeqATPSN1JsgprjFQr1Ad7j2WglwLdGRN1fBho=; b=GDAN9BPT+pMMuKVKGNh8ywdEDZ4GfGhyuCbmn9kWgtud5NKMeVYjBG1xBNwbm7ToyC 4uEyi6Ml+/FvrfrE5tPKa1u4i8xSulLJSpVH90DIOkp5y136G50FReeHVZ1s/OF5H5++ rTRY5+NFv0KdLOARajHOGG/5mhIUtl5EvWdBnDaDIEvrPd1ZKrG6PztpwWImH/b66YAp 1nt5n88RyuS1igx82+LOMEBm7PA70b/1LmqlZTjfC1bCK7dOLx6GVxkLXh9mIbp/NNiM HYsT6ACy/U6Gal8tEeq3cfS9UxiUVVCMODXoMpvKNH9aRqL8adtrTeTKKsmWxXo1ct0Z R8Iw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771633423; x=1772238223; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A78A4NrR257gTea/j+7Ov/1XuflDTzvjaz73Pkh0ykA=; b=LD85k358yw2PhxxVqt4FgypXwJ3QN8d3qc0tR97vMOts3RrFj6lG735zYYLP26EROa 9iEH7NYDOkhVFrbM8KPrxzK2fnltioFrQnDTCPJu7pAzb2YL3qHMf9/A9wNz+9uvFIGu +8JTQDEV0AkSh4oG7EaUwkcMkJYtAGpAAK6F/G7VsLmS3XZ95v6RwT6r8Vv1qg7tcPXP xknn6ZNgSddlrM91QthIe8Asa/zXp4zyX+8rQpGE1DYTimG0qD8DsDi/kht+rcdVwOwe MmyWng0UhgwslPXMb++eE4Gv5QQNsLxmruu6WchKAnATaX6JSLe3gVcmJeMU288BeOzf 0iZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771633423; x=1772238223; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=A78A4NrR257gTea/j+7Ov/1XuflDTzvjaz73Pkh0ykA=; b=ruXBg3TeyNYvStmJUUxZ3Y7pzLcGhKL99aNHOr2Cy+jQ+rgllzj5lEcDSaOVQzkAAk ZXjn1KRV5eEzMCMN0KHJkmmQ0FgdXE518yGAzuwRr/jLtow1OY4ajwNDUBpRo5wRRff6 em4wC8fE384VvLmM+vvd+5qIFYbT+TuOhJYGfwABpiZKb6PBcCa24eY1k3gwj/VXM/hf /TXOHFqo3JrBU+4kw/Zwlctm5pLborcymbKcLcyJXzorMzpI9UNQPEBF86KLFCNs6I2T BIxI7ofbdVm++8/08/gQAKSpmardw11VwWDFhN+U3HaEJJb2Mdwr2V7hIfmtFhiFioCl u5Xg== X-Gm-Message-State: AOJu0Yzwqdngj3QrlKW68LvVwjKAeyKBe47zH1rSgGTVbkku7cA8Mq+6 BbuThviY/zNCDuUN3HQQXyaKR+2dkvaxtPDoK43CqAntDVQCiOF7yrCL3yHFmYCg8+Isg07tbkB 0aHhkXbeXPHe98eKoIklWzE4G4jqXwV8QrO0S X-Gm-Gg: AZuq6aJC7/jmh92+DYjZbADZ3+JSgJtZlFIyCZxFaPGy8IaEl5Uf8JLYSd+/+jLdm6G Ist6oCJAhzTu8/VI3FcZiWCtKwxovIAnrNj/0rBTNFzJfjkTFXLZ/8QiRnSINrflxO+l4EPbcCU Muw+Xr+sLifxC7IsUxoENewPTbpK4oHMdOPiuKdPvBe2CkmcpAvqvwJ+gMJfMsE51QN1qOcN5mz VPVrq+wCbfdSUEsTIsaDXx1IvXyOQGMVnDlfOP/l8yk3yf+21X9T19Rm4LAQ1LOBEmnDuGxs0F5 PJPGDFRZxufL3MVgyLw= X-Received: by 2002:a05:600c:4f13:b0:483:7b99:131d with SMTP id 5b1f17b1804b1-483a94d9b6cmr30151955e9.16.1771633423454; Fri, 20 Feb 2026 16:23:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: zam bak Date: Fri, 20 Feb 2026 19:23:32 -0500 X-Gm-Features: AaiRm51VXpbBXIxMVdP7CbDMzXhPCf1ffwIiLhVbdcSU-WIYc90wg8vpI925ZaE Message-ID: Subject: Re: pg_enc --input-file ability to read from stdin To: Bo Peng Cc: "pgpool-general@lists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 18, 2026 at 9:21=E2=80=AFPM Bo Peng wrote= : > > hi, > > > P.S. > > Documentation also does not mention if colon ':' needs to be escaped > > (and how) when password contains colon?? > > As far as I understand, a colon ':' in the password does not need to be e= scaped. > Could you clarify what kind of case you are referring to? For the case where credentials are being read in from the file, documentation states that the format should be username1:secretpassword1 username2:secretpassword2 So I was wondering if the colon - if it is a part of the password has to be escaped (because its also a separator between the username and the password) I did try this, for example: username1:secret:password1 username2:secret:password2 ...and it seems to work fine - is this expected? no escaping is needed? > > ________________________________________ > =E5=B7=AE=E5=87=BA=E4=BA=BA: zam bak > =E9=80=81=E4=BF=A1: 2026 =E5=B9=B4 2 =E6=9C=88 18 =E6=97=A5 (=E6=B0=B4=E6= =9B=9C=E6=97=A5) 1:36 > =E5=AE=9B=E5=85=88: pgpool-general@lists.postgresql.org > =E4=BB=B6=E5=90=8D: pg_enc --input-file ability to read from stdin > > > Hello > > Is it possible to pipe stdin output to pg_end --input-file option by > using dash '-' as a placeholder for stdin? > https://www.pgpool.net/docs/latest/en/html/pg-enc.html > > I tried both "echo" and "cat" and am not able to do it. > > Example 1: > cat <<'EOF' | pg_enc --update-pass --key-file > /etc/pgpool-II/.pgpoolkey --config-file /etc/pgpool-II/pgpool.conf > --input-file - > username1:secretpassword1 > username2:secretpassword2 > EOF > trying to read key from file /etc/pgpool-II/.pgpoolkey > trying to read username:password pairs from file - > failed to open input_file "-" (No such file or directory) > > Example 2: > echo ' > username1:secretpassword1 > username2:secretpassword2 > ' | pg_enc --update-pass --key-file /etc/pgpool-II/.pgpoolkey > --config-file /etc/pgpool-II/pgpool.conf --input-file - > trying to read key from file /etc/pgpool-II/.pgpoolkey > trying to read username:password pairs from file - > failed to open input_file "-" (No such file or directory) > > > The reason for asking about this is: > * to be able to use pg_enc in scripting setups > * to be able to provide list of usernames/passwords without having to > actually create a file > * to be able to reduce escaping when autogenerated passwords contain > special characters (by echoing literals) > > > P.S. > Documentation also does not mention if colon ':' needs to be escaped > (and how) when password contains colon?? > > > > Thanks > Z... > > > >