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 1toXe6-00CA0K-BT for pgsql-general@arkaria.postgresql.org; Sun, 02 Mar 2025 00:57:31 +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 1toXe6-009IVV-Dr for pgsql-general@arkaria.postgresql.org; Sun, 02 Mar 2025 00:57:29 +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 1toXe6-009IVM-2x for pgsql-general@lists.postgresql.org; Sun, 02 Mar 2025 00:57:28 +0000 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1toXe0-000Rgv-2p for pgsql-general@postgresql.org; Sun, 02 Mar 2025 00:57:28 +0000 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-6f88509dad2so31448127b3.3 for ; Sat, 01 Mar 2025 16:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740877044; x=1741481844; darn=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=d8wumCP43wVl9L5qtWtyjBsankZWdfzj15HPn4p872U=; b=Yz71yle/NfNH52zZZ/xlkVuS+mC5wc7MRcFIeeiO/IdwIRa0+uklQceHM1VrUgRNMr 1d9VRRyv7Mq5VlE7Tt5tEM7epLmu6hfUe4Wlff8iEnjDuqEjPGpSPVhvh1w1rTWlt7yI m7rxNqVYum4Pz70sfmc2CituiPJ/xGmUBtAPMQ6w4IxVppWlcp/PH0UM1MmTIKk3lly8 x1dL1tAo3Hqbg3e9FryD9p4FJph/FWX0xXxIDXTstir14qHVDsxge2M8t6Ybvr0UF1Ox sIouNiNp5RNEs6TLTy25WAuOPpHfDboEI+bA864iuvx09k8RM7qvDHyEvB//eqTaQXIP UmCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740877044; x=1741481844; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d8wumCP43wVl9L5qtWtyjBsankZWdfzj15HPn4p872U=; b=qP+UIhEMJd3RyM3swCZKEMWNXLvBpTSvUB3wCAhVQ0lItb6rr9Za9GRz/Yx0uc1K2c eDpAQqj+MXLxiVP2TRo/RgN8q6sT6n5dUstvtAKWh27mFhZQPB+bBW/vrVazQksG0Mfd reQoIHAEjQyn651E90OyffnJtTS33exJ++V8hj6W3eyMXYXpecY878Gm5y2OlZSIZiaS bjvU2Rm64l8KkiTsdlRHufavTe/QgPSAHV+/8jQQa5SulESK+EARCTxtvjm8FNb04EDR x1xOpBkicls1sNwpa8Zq7eqsjgXR6n73xOtLQW2gDyBMa4Eooz+65vnPMXwKwxe4HBST 5IrQ== X-Gm-Message-State: AOJu0Yx+AMx1HX1RXbvkVjWCG9+CXjbOdavh9FaHdcgzmXkrQiGB5Uda baKW2RfSIQBq1lOX9G+lKyroUeiuYEOxYW837XEc1GHw0UXjgj2fNcv2LimmnaJ0iVQbfkEnheP wXxU65oAisNyY3yMXffFHgjrfYA8= X-Gm-Gg: ASbGnctsO7vxIraqh1qpvnj9TcNcj8gXvg+qw4YC+44Qf2SwVn0X1wYpGUCAX0jbegb DZ6AxMTsiTdFS3QPsAKJ/aeUuGoi8sCYALbrAa72ZVmDB+d7bhy83l3LJo2U5LGPZO3XTp5s2GO TZgH1ftGa+xSXvfU4ceHzYJiOjOTc4XS73YmFxuA== X-Google-Smtp-Source: AGHT+IHzhNZVAOMS7BTGBsgZjYXYwpSeLFhjVhBb794VVPrCKmzy8RL+P0lgy4ZsrsG4GkG0VmUvZaRxc4NfePlBtpU= X-Received: by 2002:a05:690c:6001:b0:6f9:8916:3b66 with SMTP id 00721157ae682-6fd4a04b33amr112201257b3.12.1740877044162; Sat, 01 Mar 2025 16:57:24 -0800 (PST) MIME-Version: 1.0 References: <4cf9c771-218c-495f-96af-98d162cc2ccc@aklaver.com> In-Reply-To: From: Igor Korot Date: Sat, 1 Mar 2025 23:17:08 -0600 X-Gm-Features: AQ5f1Jq2-7WTwRfwcCEhNIOuDeYz04PHzR2KSIQ_D76Q_xiYSACXQGG2x6dFgao Message-ID: Subject: Re: Version compatibility To: Adrian Klaver Cc: pgsql-general 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, Adrian, On Sat, Mar 1, 2025 at 12:31=E2=80=AFPM Adrian Klaver wrote: > > 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=E2=80=AFAM 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.i= ni > > Trace=3Dyes > > TraceFile=3D/tmp/sql.log > > [PostgreSQL] > > Description=3DPostgreSQL drver > > Driver=3D/usr/lib64/psqlodbcw.so > > > > IgorsGentoo/home/igor/dbhandler_new/Debug #cat /etc/unixODBC/odbc.ini > > [PostgreSQL] > > Driver=3DPostgreSQL > > Server=3Dlocalhost > > PORT=3D5432 > > DATABASE=3Ddraft > > OOPTION=3D3 > > USER=3Dpostgres > > PASSWORD=3Dwasqra > > 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 =3D 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 =3D This is my Postgres DSN. [PostgreSQL] Driver=3DPostgreSQL Server=3Dlocalhost PORT=3D5432 DATABASE=3Ddraft OOPTION=3D3 USER=3Dpostgres PASSWORD=3Dwasqra igor@IgorsGentoo ~/dbhandler/Debug $ [/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 n= ame > (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 >