Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH7qw-0002F1-5K for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 18:03:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oH7qu-0008Mg-CU for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 18:03:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH7qu-0008MD-1L for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 18:03:16 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH7qq-00006H-3G for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 18:03:15 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 9A49C7649; Thu, 28 Jul 2022 20:03:09 +0200 (CEST) Date: Thu, 28 Jul 2022 20:03:09 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Was my question inappropriate for postgres? Message-ID: <20220728180309.7pugfd3i6gihejma@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: <0ad74362-482d-bcb5-f22b-0423291a1b83@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oszqvwi6b2pgwo7h" Content-Disposition: inline In-Reply-To: <0ad74362-482d-bcb5-f22b-0423291a1b83@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --oszqvwi6b2pgwo7h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2022-07-24 20:27:56 -0400, Mladen Gogala wrote: > On 7/24/22 19:56, Taka Taka wrote: > I would like to know if psqlodbc_13_02 is compatible with M365. > Also, could you please tell me which of the psqlodbc_13_02 would be > suitable to Windows 10 64-bit? >=20 > What is M365? Is it a part of Microsoft Office 365, aka "O365"? Is it rel= ated > to M-16? What di you mean by "driver suitable for Windows 10"? If the dri= ver > can be installed and configured by the MS ODBC driver administrator, then= I > guess it's suitable. Not at all. There are 32 bit and 64 bit variants. You can install and configure both on a 64 bit Windows, but you can only use the one which matches the architecture of your application. I am guessing that M365 is now 64 bit only, but I've certainly seen 32 bit MS Office installed on 64 bit MS Windows, and the confusion that caused. Also there is a Unicode and an "ANSI" variant of the PostgreSQL ODBC driver. My advice has always been to use the Unicode variant, but I assume that the ANSI variant still exists because some (legacy) Windows applications can't deal with Unicode. So while I'm fairly confident that the answer to Taka's answer is "64 bit, Unicode", I see that this might not be so obvious to them. > Also, I find variety in the odbc driver. >=20 > I don't. ODBC drivers implement the same protocol when communicating with= the > database and they all work the same. Actually, no: The protocol between the application and the driver is the same (for a given platform and ODBC version), but the protoocl between the driver and the database is different: > Here is what I have: >=20 > [mgogala@umajor ~]$ rpm -qa *odbc* > oracle-instantclient-odbc-21.5.0.0.0-1.x86_64 > postgresql-odbc-13.01.0000-2.fc36.x86_64 > msodbcsql17-17.10.1.1-1.x86_64 That's why you have three different drivers. You can't use the oracle driver to connect to a postgresql database. You may not even be able to use an oracle driver to connect to an oracle database that's too old or too new (or you may be able to connect and then get weird errors - BTDT). PostgreSQL is in my experience rather tolerant of client/server mismatches, but I wouldn't be surprised if some stuff wouldn't work if the versions are too different. Also, an application written for ODBC 4.0 might not work with a driver implementing ODBC 3.8. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --oszqvwi6b2pgwo7h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmLiz1cACgkQ8g5IURL+ KF2UnQ/+IF3o3//YqV4+waR1xDAzlYBzvJ2yOTSfT0kRcwpJYMfRy5Zh8J5PCjAO afcx64iKBvu7jiGnYvPQSFe2GFfyzBsTIqMZKDX2HbmybWrcAb7abFZqy7AEsRF3 WC5NHvszGjKyXjf62kDqX96NSm9DPSotmCL+fKd5AGUvedKgcq8hhVOjPG7coxqF 8Dtq/5e26O8G2gls4LFcDGYIRzzj6DmuOa9JuYFuBfe1imMURbN7vgpKSfBZfapN iE34BG1o0QsROKDBhyxGoivI9+ec+p2RsRJku4ESjKq6brKPVh9xkzOqUbx+RORX bX0yaYwucfh6tG+69ttzELx2oDHM/mdoUHWIPslNzXk3FMFX6rpK5X1iKJnZkiYI 0NscTi0IKxO4dsKIhCVyKLB9NOYmvkDXUPXQsGZqboCHPcJgVprwHUGJWDBtJp2v R08Z7CSDSOspuZK1XO+pIRcshgdtw0wrhpQunrpqgOqW3MqS0McwVNnrnoD5NSJ4 bdmk+zCnB9gXNFbUudaIrnmnwIwAj4ZbpjZfcOiTDMqDx/vn6tVZ4TTjy+S6kKPV mbRHz627Re+bF6PzmIOEwQ0EgnvARnF1pJi1d2RAFLtxPt2b/I5bh79aut5XZfG2 8QiApVfNJiQyhSInBgjKhU37fB+46AIv37getLJMwAxBZ7oNPtQ= =7coV -----END PGP SIGNATURE----- --oszqvwi6b2pgwo7h--