R: aggregate over tables in different schema - Mailing list pgsql-general

From Vincenzo Romano
Subject R: aggregate over tables in different schema
Date
Msg-id 3eff28921001100149h31fbb39fp316a24fc683f406d@mail.gmail.com
Whole thread Raw
In response to aggregate over tables in different schema  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Responses Re: R: aggregate over tables in different schema  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List 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 by date:

Previous
From: Amy Smith
Date:
Subject: postgres issue
Next
From: Craig Ringer
Date:
Subject: Re: postgres