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.94.2) (envelope-from ) id 1toXn9-00CBvp-8q for pgsql-general@arkaria.postgresql.org; Sun, 02 Mar 2025 01:06:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1toXn9-009W2C-Ma for pgsql-general@arkaria.postgresql.org; Sun, 02 Mar 2025 01:06:50 +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.94.2) (envelope-from ) id 1toXn8-009W1a-MU for pgsql-general@lists.postgresql.org; Sun, 02 Mar 2025 01:06:49 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1toXn0-000RkT-1D for pgsql-general@postgresql.org; Sun, 02 Mar 2025 01:06:48 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0BC70114010B; Sat, 1 Mar 2025 20:06:42 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Sat, 01 Mar 2025 20:06:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1740877602; x=1740964002; bh=l1EkvV0M/hzyTkGvkwWK5pcMYNm46qjwS/fKOgqc9WM=; b= JHfcDSvjjoWIjqK+kw2eo1Sz+Kdf1e25cVoPrQnRvP/54fohuoVa2rhThu7Arxvf +Cru+T+i4lFzQslNWYaCCqOhR2Ca+hg+xSbbIXh9VSZ82ij2Oii5pjAONG00VVF8 8Se1cAGyfRMQaJwKCOcdRmZkk4PZ/aBfuoYv+hL8rIzL4/M5GHW+4PGPRC44nyYl RJYF+VQltsQ4mvYfLsbQyRy5OMBfH/rMMUum+mdKuQmR6+iS9Pyp2dGLnjHrZHhv nlLJ9hl3G/1OQhlgbxMLInpRXRSU7pUWGB2PgkgzZRctkXbtTjMFRxdbxBLIsQdT 08Amjv/FSpyowMZvP65Haw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1740877602; x= 1740964002; bh=l1EkvV0M/hzyTkGvkwWK5pcMYNm46qjwS/fKOgqc9WM=; b=1 UXEEwvbYFa+NU6qXYoAwlPeg88VVB2ql2eGjHWrRkLKqemudT8KI41NaNCqHbWay nnp3CmEhsv6NYvQ5NFu8oQgZvpu3420LaloFDRbnrOYLBUqmk4qZv50t1nfZbt+j YPKxArrUnxF+kjXK7FY5xSZYYmn2p2cGV0wSR/M3/SHuF5aHb0g1JSdJ49F4wIp5 /Uraw8Dh3T00UZKmFdDp5l11qGjy34Q9c3ba7wSzZFNdi1HmSlXPWTxobYiN27sY R6Z8zCV+CXg6aYXnYYhFIe9VXOz1uhR3bl9Gbo0UtIobTE2008f/RpWHXFJXz+Xh 2nGlM8jyElXISxOgaNCUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelgeekfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefhveeihfevlefffedt hedukeevfefhfedtgeeifeevteffgfefhedtffetudettdenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegr khhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehikhhorhhothdtudesghhmrghilhdrtghomhdprhgtphhtthhopehp ghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Mar 2025 20:06:41 -0500 (EST) Message-ID: Date: Sat, 1 Mar 2025 17:06:40 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Version compatibility To: Igor Korot Cc: pgsql-general References: <4cf9c771-218c-495f-96af-98d162cc2ccc@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/1/25 21:17, Igor Korot wrote: >> >> Do you have a $HOME/.odbc.ini? >> >> Also in odbc.ini, per man odbc.ini, I believe you have to have something >> like: >> >> [ODBC Data Sources] >> Postgresql = This is my Postgres DSN. > > I added it and now my odbc.n look like this: > > [code] > igor@IgorsGentoo ~/dbhandler/Debug $ cat /etc/unixODBC/odbc.ini > [ODBC Data Sources] > PostgreSQL = This is my Postgres DSN. > > [PostgreSQL] > Driver=PostgreSQL > Server=localhost > PORT=5432 > DATABASE=draft > OOPTION=3 > USER=postgres > PASSWORD=wasqra > igor@IgorsGentoo ~/dbhandler/Debug $ Did the connection work after making the change? > > [/code] > > And there is no .odbc.nii n the ~: > > [code] > igor@IgorsGentoo ~/dbhandler/Debug $ ls -la ~/.o* > -rw-r--r-- 1 igor igor 0 Mar 1 23:10 /home/igor/.odbc.ini > igor@IgorsGentoo ~/dbhandler/Debug $ cat /home/igor/.odbc.ini > igor@IgorsGentoo ~/dbhandler/Debug $ > [/code] > > Apparently the file is created when run "isql -v PostgreSQL". > I will look into that. > > Thx. > > > >> >> From man odbc.ini: >> >> "[ODBC Data Sources] section >> >> The required section [ODBC Data Sources] lists each data source name >> (DSN) as a key. The associated values serve as comments. Each entry >> must be matched by an ini file [section] describing the data source. >> " >> >>> I'd like to develop backward compatible software which is compatible >>> with the oldest possible combination.. >> >> Not following. >> From my experiences with the ODBC driver it is backwards compatible, so >> I would think using a more recent version would be the preferred solution. >> >> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com >> -- Adrian Klaver adrian.klaver@aklaver.com