PostgreSQL is a full RDBMS (Relational DataBase Management System) which is available on Linux and a number of other platforms (not RISC OS though).
This page contains a port of the psqlODBC PostgreSQL driver.
The driver can be installed using the ODBCMan application provided elsewhere on this site. Source code with instructions on how to build the driver are also available.