PostgreSQL with Clarion: 32-bit or 64-bit ODBC driver?

Applies to: a 2022 thread; PostgreSQL 13 and 14.4 servers are named, with psqlodbc 13.01 32-bit (Unicode).

Problem

A developer starting with PostgreSQL asked which bitness other Clarion users run, whether anyone uses PostgreSQL 12, and which ODBC driver to use if the choice is 64-bit.

Solution

  1. Use the 32-bit ODBC driver. One poster runs PostgreSQL 13 64-bit for new clients and uses psqlodbc 13.01 32-bit (Unicode) with Clarion. The asker said others also confirmed the 32-bit ODBC and that he would start with PostgreSQL 14.4, working well for others.
  2. A 64-bit server is fine. The asker reported that PostgreSQL lets 32-bit and 64-bit clients connect to a 64-bit database, and Clarion and his other tools were happy.
  3. The ODBC driver layer is separate from the server. Another poster explained that a 32-bit Clarion ODBC driver (MSSQL, ODBC, SQL Anywhere and others) cannot use a data source that only has a 64-bit ODBC driver, unless some 32/64-bit bridge exists. He recalled accidentally creating a 64-bit data source for MySQL or MS SQL, and the program reported the source was not found.

Caveats

  • The thread does not name a 64-bit driver used by anyone with Clarion; the poster's recollection of the "not found" case was not re-tried.
  • Create the DSN with the 32-bit ODBC administrator, as in the Advantage entry in this batch.

Today (2026)

Not re-tested. The 32-bit driver rule likely still holds for 32-bit Clarion applications; a reader on a current build and server is welcome to confirm.

Sources: Andre L. (Aug 2022, the question), Jack, Arnor B. (Aug 2022) in softvelocity.clarion.databasedrivers.