On 05/12/11 8:38 PM, Tim Uckun wrote:
I sometimes think it'd be nice if Pg offered the ability to translate schema
to "databases", so it runs with a single database and multiple schema, and
you "connect" to a schema, MySQL style. It'd help people who want to use
multiple databases on a machine and query between them, though of course
it'd do nothing for people who want to do inter-machine or inter-instance
queries.
That's an interesting idea. Since I am building this app from scratch
I suppose I could create different schemas for different applications
instead of using different databases. I wonder how rails and active
record can deal with that. I'll take a look and see.
I am presuming of course that one can query across schemas.
most certainly. just prefix any objects or fields with
schemaname.objectname. if you don't specify the schemaname it looks in
the SEARCH_PATH, which defaults to "$user",public
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general