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

From Ivan Sergio Borgonovo
Subject aggregate over tables in different schema
Date
Msg-id 20100110023015.3e8f6c07@dawn.webthatworks.it
Whole thread Raw
Responses R: aggregate over tables in different schema  (Vincenzo Romano <vincenzo.romano@notorand.it>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: dynamic insert in plpgsql
Next
From: Amy Smith
Date:
Subject: postgres