Step 1: The OS-as-Postgres-DB system in this thread.
Step 2: FUSE filesystem wrapping the DB, as in https://github.com/petere/postgresqlfs
Q.E.D.