Fixed index and pending references creation on Postgres.

Tnis makes it possible to run the tests against Postgres again.
Auxiliary fields inherit their owners' db_tablespace.

This fixes the single test failure on Postgres.