Hi,
--tablespace option doesn't work with createdb.
(directory and files are created under $PGHOME/base )
but when I use
psql template1 <<!
create database test tablespace testTbl;
!
That's OK (directory and files are created under tableSpace directory)
Frédéric Germaneau