pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedMultiples schemas
3+ messages / 3 participants
[nested] [flat]
* Multiples schemas
@ 2005-03-02 11:30 lucas@presserv.org
0 siblings, 2 replies; 3+ messages in thread
From: lucas@presserv.org @ 2005-03-02 11:30 UTC (permalink / raw)
To: pgsql-sql
Hi,
Is there a way to construct a multi schema in my data base?
Something like:
mysystem.finances.money.tables
mysystem.finances.money.functions
mysystem.finances.credits.tables
mysystem.finances.credits.functions
mysystem.amount.products......
....
Or can I use another database like:
createdb DB1
createdb DB2
psql DB1
select * from DB2.schema.table
Or i need to construct the tables in the same database and the same schema like:
mysystemdb.amount.products
mysystemdb.amount.vendors
mysystemdb.amount.clients
mysystemdb.finances.money
....
Could I create a multi schema into another schema ??? or is there only one level
for schema sctructs?
Thanks for all
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Multiples schemas
@ 2005-03-02 14:24 Peter Eisentraut <peter_e@gmx.net>
parent: lucas@presserv.org
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2005-03-02 14:24 UTC (permalink / raw)
To: lucas@presserv.org; +Cc: pgsql-sql
Am Mittwoch, 2. März 2005 12:30 schrieb lucas@presserv.org:
> Could I create a multi schema into another schema ??? or is there only one
> level for schema sctructs?
No and yes.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Multiples schemas
@ 2005-03-03 12:17 Markus Schaber <schabi@logix-tt.com>
parent: lucas@presserv.org
1 sibling, 0 replies; 3+ messages in thread
From: Markus Schaber @ 2005-03-03 12:17 UTC (permalink / raw)
To: lucas@presserv.org; +Cc: pgsql-sql
Hi, Lucas,
lucas@presserv.org schrieb:
> Is there a way to construct a multi schema in my data base?
> Something like:
> mysystem.finances.money.tables
> mysystem.finances.money.functions
> mysystem.finances.credits.tables
> mysystem.finances.credits.functions
> mysystem.amount.products......
> ....
AFAIK, there is no way to have hierarchical schemas, but if you only
need it for humans, you can name your schemas like finances_money_tables
and finances_money_functions.
> Or can I use another database like:
> createdb DB1
> createdb DB2
> psql DB1
> select * from DB2.schema.table
In contrib/, there's a dblink module that lets you select data from
other databases, but I'm afraid it is rather limited in usage and
performance.
Markus
--
Markus Schaber | Dipl. Informatiker | Software Development GIS
Fight against software patents in EU! http://ffii.org/
http://nosoftwarepatents.org/
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-03-03 12:17 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-02 11:30 Multiples schemas lucas@presserv.org
2005-03-02 14:24 ` Peter Eisentraut <peter_e@gmx.net>
2005-03-03 12:17 ` Markus Schaber <schabi@logix-tt.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox