I'm working on a project that needs to use hstore
on multiple schemas.
The 'public' schema, where the hstore
extension was being installed isn't available everywhere, because my scope doesn't lookup at 'public'. On some tryouts, I've created the extension on a schema called 'hstore' and used the schema on every available scope (search path) used.
Based on this, I've some questions:
Is it ok to create a schema just for the extension? Or is it better to create the extension on every single schema (like,
customer_1
,customer_2
, and so on...)?Does the creation of the extension in a separate schema affect where the data is stored? I'm using multiple schemas to make it easier to backup/restore, and really don't want pg to store all my
hstore
data in a hidden table (likepg_large_objects
for blobs) on a single schema.
extensions
schema would need to be added to search_path, correct? – Inviolable