Jonathan Altman

Dotcom Thousandaire

2 posts tagged with "schemas"

(November 01, 2005)
tags: postgresql, sql, schemas, list, technical

To list the schemas in a postgresql database:

select nspname from pg_namespace;

(November 01, 2005)
tags: postgresql, schemas, rails, multiple, technical

I wanted a nice convenient way to have multiple Rails apps share my single postgresql database but keep all the apps' tables/procs/views/other artifacts isolated from each other. I came up with the following solution, which I can't claim is…