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 1vN0fs-008YUG-0T for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 03:22:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vN0fp-00DAdw-37 for pgsql-general@arkaria.postgresql.org; Sun, 23 Nov 2025 03:22:02 +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 1vN0fp-00DAdn-22 for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 03:22:01 +0000 Received: from mail-yx1-xb134.google.com ([2607:f8b0:4864:20::b134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vN0fo-000ztu-05 for pgsql-general@lists.postgresql.org; Sun, 23 Nov 2025 03:22:01 +0000 Received: by mail-yx1-xb134.google.com with SMTP id 956f58d0204a3-63f9beb2730so2507404d50.0 for ; Sat, 22 Nov 2025 19:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763868117; x=1764472917; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5Pe7dAULviKXM26Pd7f0x4yTGa2FI5fPD6JfX+Ls/Tg=; b=EBpQJFejQn3GEB33R5ZMi0ZEdUxA8Ex6mn8S9umQYVwTGt0p3SdRwcwIb4COweXVec yBZ6bOS8bEzDzMj35V7FbH8d5cjEAxWGnGf/oA9iYREQqgefs4fP+TYpwSyaqV+PHqEm ckDmcu+Ah59LSGoa+FM5/u1lRiSYobrlsQ/oi+veMTgTVuwNuzusA0OSdynmS5LiILC0 5nVVF/5b67bUhE+fcT4UpUvDLN9SYGkTLHjLjpljCE3mqWXQz+kH+pR1UDU0opK1pH69 WT7XgJ443Q8tGGlPSEt2jfqT72/mqpeQu/jaySE70tAZ5io4GvbgYBYw9sy990VeeTTY OpKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763868117; x=1764472917; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5Pe7dAULviKXM26Pd7f0x4yTGa2FI5fPD6JfX+Ls/Tg=; b=czQn8efROHJx7m6HHeZYrYUO9cDvOOr0E+oXma3hM7QjUvdHk2SamCJmwVkYv7HSuj 1CmBI9A/xMdFkW2OS5qmKWsZnYaaUAfYVSl1GFtOauS3fSAHoIbWmDbpVbP78+T5e24R SYj1UkT9BWeKnlPyoAVexD6jhowMhjJF2jI6s3j7jm9kPmfxd2JFtKd1+ytHwyGJmBMQ 3usXG2SvFkA3yhFYCRLyTGnI2vMTwkplyL9GfhtkVWU7zt7UEMTwqjq9wnOdFAVIwzN2 VKc7rnwbAhr09huJPHH1WIzfCj9e6hEnPaZRcbVovZYBV+2aSNhFltM5HK52Dzm8yd4E xEgQ== X-Gm-Message-State: AOJu0Yyvw7pP+qxSDbofevQrq9q+nOnEaD1y548zuXE16Cc1a6zwluAL dOCtTq8KzV/MQDpM+2KV4BedBagf3R2LtjWinViu6CxWAehGFOzLXAkVkZzfm42h4OQ7zE6kvip LrXmjefwkrOGmGslizRvxDyzk5cu3fVn7XTPM4xM= X-Gm-Gg: ASbGnctCtgfALOkS2Wlv9naeNlMjvr6+1Ac6SEiXHzxsN6Iugt6QNFKmwwhmEiBpGwY kqyQRCaflvnjLtP6aW4uHb4sVznb0gQnxMP+AbAak1YovMRBbMSL5kIuzyQ+P8nxTJKHChPyGA/ vCAQdLTs43Xg4wEJQZcskpjypeamOFKKEL8GBDHX6iciHLvSVeUcGYOz8Yon4mRNdIE1ZZHxoo+ Z9KLQoX8keCZ5djfjWEbAgQEd1ugp38Ky6OVHDw8vaqU8wUR7XchHQVcr7KksWTBtWEf4IEjVfc EhZKAK0zKg== X-Google-Smtp-Source: AGHT+IGPLH5FmkyMl5I6CD3q0kOXmXkkgLIu0XAZOZFARBGZ20St4FD7V0m/TFlamALMVwnAtZULM6g18BNDSYtLVxs= X-Received: by 2002:a53:d056:0:20b0:640:d9b1:ed1c with SMTP id 956f58d0204a3-64302a90765mr4567148d50.5.1763868117603; Sat, 22 Nov 2025 19:21:57 -0800 (PST) MIME-Version: 1.0 From: Igor Korot Date: Sat, 22 Nov 2025 21:21:46 -0600 X-Gm-Features: AWmQ_bmJgCGD2PppGMY3_-x6CZKXvQVACMq-AS0xhWgExphHajAFyDUl3D4zxm0 Message-ID: Subject: Way to retrieve UserName/Password To: "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 configuration file, but in this case the information will be duplicated and I'd like to avoid it. Thank you. [code] igor@WaylandGnome ~/dbhandler/Debug $ cat /etc/unixODBC/odbcinst.ini [ODBC] Trace=Yes TraceFile=/var/log/unixodbc.log [postgres] Description=Postgres ODBC Driver Driver=/usr/lib64/psqlodbcw.so FileUsage=1 igor@WaylandGnome ~/dbhandler/Debug $ cat /etc/unixODBC/odbc.ini [postgres] Driver=Postgres Description=Postgres ODBC Driver UserId=postgres Password=wasqra Servername=localhost Database=draft Port=5432 [ODBC] Trace = Yes TraceFile = /home/igor/odbc.log [ODBC Data Sources] postgres=PostgreSQL Driver testing igor@WaylandGnome ~/dbhandler/Debug $ [/code]