PostgreSQL from Clarion without ODBC: is there a native driver?

Applies to: Clarion as of a February 2007 thread; the Clarion and PostgreSQL versions are not named.

Problem

A developer new to PostgreSQL reached his database through ODBC and asked how to connect directly, without ODBC, the way he had connected to MS SQL in an earlier document management system.

Solution

  1. At the time of the thread there was no native PostgreSQL driver for Clarion. Use one of the two ODBC drivers available for PostgreSQL (the thread does not name them).
  2. The only other way the posters named was writing your own driver or interface against the PostgreSQL client library, written in the thread as pqlib.
  3. One poster pointed out that the Clarion MS SQL driver also goes through ODBC, so connecting "directly" to MS SQL was not a different path.

Caveats

  • One poster added that ODBC is just another interface and that people run large, high-transaction PostgreSQL systems on it from Clarion. His advice: learn SQL, stored procedures and triggers, and remember that SQL works on recordsets, not records; ISAM-style habits may be faster on some operations.
  • The thread does not say how much speed, if any, a native interface would add.

Today (2026)

Not re-tested. Current Clarion releases may offer other routes to PostgreSQL than the 2007 ones; check the current driver list and the Hub entries for PostgreSQL before relying on this answer.

Sources: Joe M. (Feb 2007, the question), Peter H., Michael G., Benjamin K., Bernard G. (Feb 2007) in softvelocity.clarion.databasedrivers.