Andreas Pflug wrote:

Joe Conway <mail@joeconway.com>

Commit: 0b89d261c7a91ff9ebc6a6b9bd3ee129576bdd9a
Author: Joe Conway <mail@joeconway.com>
Date: 2004-07-02T18:59:25Z
Releases: 8.0.0
Andreas Pflug wrote:
 From an idea of Bruce, the attached patch implements the function
 pg_tablespace_databases(oid) RETURNS SETOF oid
 which delivers as set of database oids having objects in the selected
 tablespace, enabling an admin to examine only the databases affecting
 the tablespace for objects instead of scanning all of them.

initdb forced

Files