[postgres@thiludbapql01 ~]$ createdb baptest -D /PGDATA
createdb: error: database creation failed: ERROR: tablespace "/PGDATA" does not exist
Clusters, created using initdb, are what interact with the file system. Individual databases don’t. They exist within a cluster.
David J.