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 1vN0se-008dPT-32 for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 03:35:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vN0sd-00DFcK-13 for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 03:35:15 +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 1vN0sc-00DFcB-38 for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 03:35:15 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vN0sa-000y4m-1v for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 03:35:14 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-7c750b10e14so1113586a34.2 for ; Sat, 22 Nov 2025 19:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763868911; x=1764473711; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=9gNlLPvr6ai36595ePyWxv0U+ylH+5J+HJykLprZpoc=; b=IKQTW1IkVpTaQTTHooHAgulSgojZeQbvy8pAwCD4in8rv82UwryGXKFygWAcX7ulct Z3+ShUX/AY+jKDg9lbu4Eyhs057lHicFjjyyVQX952ZUFu2Us1RUk92jyEQ02JkRTCV8 UX9BuJS3Vbh3Plvw7ctx+uaRHvUOQhnGuVUpq9mjbkv3nOTsoJBpWyzNATGv3LqIbmcO rqF60psM4XbWgHvevCzQjeoT/+YLnBLbs+Px6cwKMcwMO72jSrDAkhb2V9UN17ifV7yi 54NlURXw6Us9aH5xF7bqZ/nj75rJTjB5EesIno5AAxCp9DYKn45upmp8wVuAGvRuCuE2 Vp8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763868911; x=1764473711; h=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=9gNlLPvr6ai36595ePyWxv0U+ylH+5J+HJykLprZpoc=; b=RSZBvDTCchPUVyz3sz4z9u4aEks/71XgFuv1/RDHxbXb/wEF0Q3RS1U9ydGnfC1+gm QS8dg5SIBe6V0UGuqMqZec+vpNEcGiovUUQawe4hDFevngvEaWpcbnrY3eVdQLWgZzTm jc8xtURCLzVuAXNH8YMV4cy4lEp7XeKfZhGITo9pWBEFZhd8mbhdHja0gXaSh+GLfv6v ZQA8rCyd5evAPQn+5lcV/5Vi1zh/1B/YI7E0ZszI8+yLnxD3famntqLVwyBFwLelXehZ paB5X9w+6WFvD9UArIZr4wtJuwLW9f41RSxLV/Q3T0nqwQQ3dVMAu+WMoG9ItG81DCBr axmg== X-Gm-Message-State: AOJu0Yw6BfPUylWXuyKxUbu27qQ6iV8J/FNzQeUdL5RBTEgMIOARt4Rt Mwo4sYOitFs5/OkjhW9rq+55H4vfShji1JWGuxu7Di/fcypFHHYI2C0KUwKbKruaFhRcA745iK3 pO7720eW6lXk18+Wv1l9kSmQ1uQvPkMG1NA== X-Gm-Gg: ASbGncsaijTb1Kv5f1A5WP8a9YEAAZxgmDzrbuo2JAAlpMqM+hvXQL6N0/0j66RxvCz 6FrB4x9WRCH1hTnr5+xxsKMKN1/by7rXEKtVFxYoByEyLMG4Z1YOjTr/D1zf7eONuGz3B85L1Y5 23t9IJemvjqBOPMUk+pLFocpTecNrDUKKJWdGONN4HF4irK0vfJFFyPAzo9XC5azU6CyVryGjpv YklGvpsJE8Wr+GL/e7yfKTGq6ULIm/w50KUVDg92OUtKDwQ9kH44XDEg7uIWnAwEwML9PEf X-Google-Smtp-Source: AGHT+IHSghIF0tbER8WwTGEfLwhQtCRF8wVIQYnjKOnlHYKwsZdbj0xHRsKlFRN/Q0A/ExleTugfY7xo5WeRmHb+ZMc= X-Received: by 2002:a05:6808:c1ec:b0:450:caf8:ebb0 with SMTP id 5614622812f47-45112a9ae4fmr2749033b6e.25.1763868911010; Sat, 22 Nov 2025 19:35:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Sat, 22 Nov 2025 22:35:00 -0500 X-Gm-Features: AWmQ_blXxJUuHEbPp5coQQnhiXv6X_ZSq-EslUKui5bXen6Z7VRh-5WyW6RvGQU Message-ID: Subject: Re: Way to retrieve UserName/Password To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000df08b606443abbac" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000df08b606443abbac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 22, 2025 at 10:22=E2=80=AFPM Igor Korot wr= ote: > Hi, ALL, > I successfully built the server and I previously had the odbc driver > installed. > > I can successfully connect from psql from the Terminal, and from isql > unixODBC utility. > > However, what I wonder is - is there a simple way to retrieve UsrerName > and Password from odbc.ini file? > > Below is my current configuration to connect. > > WHat I'd like to do in my software is to get those parameters and use > them in the "Connect To DB" dialog. > > The easiest would probably be to save it in my local program configuratio= n > file, > but in this case the information will be duplicated and I'd like to avoid > it. > Grep the ini file, and add it to your local program's config file? I sympathize with you about password duplication, though. My .pgpass files are chock full of duplicate passwords (primary server and multiple replication servers, plus server-name and server-name.example.com. Regular expression parsing and case-insensitivity would make users (including DBAs) lives a *lot* easier. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000df08b606443abbac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Nov 22, 2025 at 10:22=E2=80=AFPM = Igor Korot <ikorot01@gmail.com= > wrote:
Hi, ALL,
I successfully built the server and I previously had the odbc driver instal= led.

I can successfully connect from psql from the Terminal, and from isql
unixODBC utility.

However, what I wonder is - is there a simple way to retrieve UsrerName
and Password from odbc.ini file?

Below is my current configuration to connect.

WHat I'd like to do in my software is to get those parameters and use them in the "Connect To DB" dialog.

The easiest would probably be to save it in my local program configuration = file,
but in this case the information will be duplicated and I'd like to avo= id it.

Grep the ini file, and add it to= your local program's config file?

I sympathiz= e with you about password duplication, though.=C2=A0 My .pgpass files are c= hock full of duplicate passwords (primary server and multiple replication s= ervers, plus server-name and ser= ver-name.example.com.

Regular expression parsi= ng and case-insensitivity would make users (including DBAs) lives a lot<= /b>=C2=A0easier.
=C2=A0
--
Death to <Redacted>, and butter sauce.
Don't boil me= , I'm still alive.
<Redacted> lobster!
--000000000000df08b606443abbac--