R: aggregate over tables in different schema
От | Vincenzo Romano |
---|---|
Тема | R: aggregate over tables in different schema |
Дата | |
Msg-id | 3eff28921001100149h31fbb39fp316a24fc683f406d@mail.gmail.com обсуждение исходный текст |
Ответ на | aggregate over tables in different schema (Ivan Sergio Borgonovo <mail@webthatworks.it>) |
Ответы |
Re: R: aggregate over tables in different schema
|
Список | pgsql-general |
Try using inheritance.
Il giorno 10 gen, 2010 2:30 m., "Ivan Sergio Borgonovo" <mail@webthatworks.it> ha scritto:
I've tables in different schemas all with the same name and
structure.
I'd like to compute an aggregate on the union of those tables.
I don't know the schemas in advance.
The list of the schema will be built selecting all the schemas that
contain a table with that name.
Other than building dynamically the statement as a list of union or
building up a view is there any other way?
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: