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 1vN1YT-008sxB-0q for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 04:18:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vN1YR-00DM0e-2I for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 04:18:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vN1YR-00DM0W-12 for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 04:18:27 +0000 Received: from mail-yx1-xb12f.google.com ([2607:f8b0:4864:20::b12f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vN1YP-0010Mn-1x for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 04:18:27 +0000 Received: by mail-yx1-xb12f.google.com with SMTP id 956f58d0204a3-63f97c4eccaso2881765d50.2 for ; Sat, 22 Nov 2025 20:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763871503; x=1764476303; 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=TyD8s2MFYXUPcUosuTMC6LUMaodOZgjzV3icVWdZoDA=; b=DiO3aPzV5qLuv1cXWsQBUmsFFydgTwMYT1gnTk2oZS/2c73uxsWKyF2Uusx78zoAoh TMOL12KpeZypT2navTEXcw2e2il0o9cXjuLwNhZbrjHwhm7aSdFF8im5rjjrDffIuchm 8658mWt//JWyDPygPhvJt+jc1zYIMNkxaYnTUldEf2lwYHFebOmEDuzb/ym0KloHIgbE uOsnN/AWsjoP0t1G4n+pfUFSrlbFF0s82dACx7qmGhPAQRdHOfped+x3fuuHD/gv1f1z 9MfUnYlEFEf3FN23ymjzbY4Pqk4GfDvMaUcCggFsis3TAreuRSyB1SSDh7TtEzEolRQ0 00sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763871503; x=1764476303; 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=TyD8s2MFYXUPcUosuTMC6LUMaodOZgjzV3icVWdZoDA=; b=HVbYSykfuEU6alVB06Busi8tME1dkg3msQqPp/+baLEj0RyUy51Ey269WFXH8wtG3y ErUcpRu0FXE2t+yQFs2x6EpqZJn0XcYgY2E+nQRBu4pIAOaXRewewDiXKUQ8YeYP81z8 UaqKxRLTffb8GiRqGn/6lB6Fv+s/b0tsiwzXrgGNjMy7T1e85w9c2toKnmqbpFij0tLN G9cuodWNmslBNrfJAW7WyIj6PYe5CrNwC4FjHWz+SCjn3yB8nmT2FiQ2gQKcfHhpalyy xSMEBDC2VaXUew/wP+DdZIKCCmw0Zyo7ZDi5eErqmHwg4fpB+vnQlfMbHEhsfyjgAQJr sQLg== X-Gm-Message-State: AOJu0YwnOBxG3JYeILuksuwQphx5PXUEJaLnjLcB0A+jvz6+KgGG5nkO MpkyuPfhsiKCgGprHZeDFcWFJqemQ9MMYSEjsZU1SweaYVWsoyhMnU41ZgHjYq9atvwt1gXdjdN LNn1RN+Seni8+B5kuNLAMk6gbLpU3nhg= X-Gm-Gg: ASbGnctCr3nismtB7WcSwoTnA0PsQAynbepamuQVOYmfPu9RwpR6loCpnxbcL3ra9qE vQF/4Ewh4yCGILz1o/ns9q+ZF7Dhm3ejoaJVfDhCbIyj0MhKXK8eZWq1JlSLqUeWAO+UkRQi/mw L95UcRvDGNNk213ruO71g8BepjeJ5lo0g+mDQW8cc1hOM+pSFwAK8OOAQKIlCMhjX3I1I6BgTdE C1k5AzGLedQA4LpZbdodi2SSexCufjYnW29iK5OUC7ZKdTLf5g0zRlWBRzwcR+LFQdIcw7Y3j7w lspn3w9M5A== X-Google-Smtp-Source: AGHT+IEiT5j+c1WqdMMtzG5vOANKZiicDCrotOmsXqt1gK52KIw61wukPOaPYcW//AyYDmAp5ioXT1I889wc/G2QVuE= X-Received: by 2002:a53:d049:0:10b0:63f:af79:e4d7 with SMTP id 956f58d0204a3-64302a62257mr4477982d50.9.1763871503085; Sat, 22 Nov 2025 20:18:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Sat, 22 Nov 2025 22:18:09 -0600 X-Gm-Features: AWmQ_bkB0yNSHj2SHqeFQHhZH8C4I4KlUdd89_Uqq3V9rqKW-j2OEXp_7vSqqFQ Message-ID: Subject: Re: Way to retrieve UserName/Password To: "David G. Johnston" Cc: "pgsql-generallists.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 Hi, David, On Sat, Nov 22, 2025 at 9:37=E2=80=AFPM David G. Johnston wrote: > > On Saturday, November 22, 2025, Igor Korot wrote: >> >> >> WHat I'd like to do in my software is to get those parameters and use >> them in the "Connect To DB" dialog. > > > There is pretty much nothing special about this situation pertaining to P= ostgreSQL. What specific challenge are you encountering? I have to imagin= e nearly all languages have a module/library that handles this 30+ year old= file format. The simplest solution would be to use SQLGetPrivateProfileString(). However, as much as I'd like to, this function distinguishes between "UserId" and "UserID". There is also a problem where the odbc.ini file location is different from distro to distro, which the function above nicely handles, but I'll need to roll my own some 3rd party library. Thank you. > > David J.