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 1toRcO-00Apx9-A4 for pgsql-general@arkaria.postgresql.org; Sat, 01 Mar 2025 18:31:21 +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 1toRcO-001cH3-G4 for pgsql-general@arkaria.postgresql.org; Sat, 01 Mar 2025 18:31:19 +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 1toRcN-001cGu-K4 for pgsql-general@lists.postgresql.org; Sat, 01 Mar 2025 18:31:18 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1toRcH-000OWj-2O for pgsql-general@postgresql.org; Sat, 01 Mar 2025 18:31:17 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id F2EE9254009D; Sat, 1 Mar 2025 13:31:12 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Sat, 01 Mar 2025 13:31:13 -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=1740853872; x=1740940272; bh=+rSVleAYRoaMit3XIcDlqACQ2uJ81q6d/0q7Q9jobQo=; b= geCrbyTHoKDRLUZx7YGD1r5v/ZNP2ZlrpJRotyGqSfrIA7WydgxM1ZU8skNgG6iF Eq9Ei2RUV0IdBt4kkHcfhSe+SBAm2uqvq89V8kpcE0SWM/nJWT2qQq3COCUGBWuw fr/FBGsE/Q9Q+Mn/gzztVJOpJH2nBaQWuj5K+MvTWEUznH2+bB3fQ7N0UZEl9CQE x7yDEr2Z3y6gEqeEe3DKPkSQ9Xwq6DiiXFIWnVkZ/JWexVsvbH/TVt+jAET8DtTL GNq0YAYrSwKkpYwFXQDxA2MdZRZIfRKfR/b3SLKIGorVqs+E22Ond4862x8yCKhW U1NN+PkaelXqzr2gKfr5Hw== 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=1740853872; x= 1740940272; bh=+rSVleAYRoaMit3XIcDlqACQ2uJ81q6d/0q7Q9jobQo=; b=D za0CNuov7y2DS0OGiZ3GTkaKyfVmv3/mRSgePet/042B9i5UqWmXZwk0/FSzoM2c Ca664qjsz8KZmiyzOirZeS/PazqnR8uOirdl5KwoyLHwde47NbcjcLYCP3+b5J8f 0xYjVVnXDkR9Zdd2vaAUhjkj5cvC+Si/lO2kBQn/ihiQ1t6vrPtjvqXjKG3rauKp HKhePkVS1sW8Z3foHYWw9WKQnXBAtkklKqhI5ZdKulGJQ6pjwci3v02TUnrr6Pvz iB5A81jaUd7Q35aU2CZqrFNYX1mMSFjW8bvwymNuWqm4uk7NlsKal6xCTDvFnisu jRdq61J/rnbv1iR9SeIEw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelgedtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfvefhjggtgfesthekredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeduvdekffegudejtdet veehjeehffejleefjeefieektdetvdelieehvdeftdevheenucffohhmrghinhepmhgrnh hkihgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprh gtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhhothdt udesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpoh hsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Mar 2025 13:31:12 -0500 (EST) Message-ID: Date: Sat, 1 Mar 2025 10:31:11 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Version compatibility To: Igor Korot References: <4cf9c771-218c-495f-96af-98d162cc2ccc@aklaver.com> Content-Language: en-US Cc: pgsql-general From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/1/25 14:17, Igor Korot wrote: Reply to list also. Ccing list. Comments inline. > Hi, Adrian, > On Sat, Mar 1, 2025 at 11:23 AM Adrian Klaver > wrote: > > On 3/1/25 13:15, Igor Korot wrote: > > Hi, ALL, > > I have PostgreSQL version 13 and ODBC driver version 11 > > on my Gentoo box. > > > > Are they compatible? Can I still connect to the server? > > Have you tried to make a connection? > > > Tried. > > [code] > IgorsGentoo/home/igor/dbhandler_new/Debug #cat /etc/unixODBC/odbcinst.ini > Trace=yes > TraceFile=/tmp/sql.log > [PostgreSQL] > Description=PostgreSQL drver > Driver=/usr/lib64/psqlodbcw.so > > IgorsGentoo/home/igor/dbhandler_new/Debug #cat /etc/unixODBC/odbc.ini > [PostgreSQL] > Driver=PostgreSQL > Server=localhost > PORT=5432 > DATABASE=draft > OOPTION=3 > USER=postgres > PASSWORD=wasqra > IgorsGentoo/home/igor/dbhandler_new/Debug # > > igor@IgorsGentoo~/dbhandler/Debug $isql -v PostgreSQL > [IM002][unixODBC][Driver Manager]Data source name not found and no > default driver specified > [ISQL]ERROR: Could not SQLConnect > igor@IgorsGentoo~/dbhandler/Debug $ > > [/code] From: https://www.mankier.com/1/isql "DSN The Data Source Name (DSN) used to connect to the SQL database. unixODBC looks for the specified DSN in /etc/odbc.ini and $HOME/.odbc.ini, with the latter taking precedence. " 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. 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