Re: select results on pg_class incomplete

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: Thiemo Kellner <thiemo(at)gelassene-pferde(dot)biz>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: select results on pg_class incomplete
Date: 2024-03-15 12:59:10
Message-ID: 7C3D71C1-36D4-4DD9-9259-AD15C7E9D94F@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Mar 15, 2024, at 03:30, Thiemo Kellner <thiemo(at)gelassene-pferde(dot)biz> wrote:
> Thanks for the ideas. As I would want to keep it in the database, dblink would be the way to go. Maybe, I will create a prodedure that creates a view in the monitor schema accessing the respective databases with union all to concatenate the data.

You could also create a PostgreSQL foreign server for each of the other databases, which would let you issue a query to UNION together the results of a query on all of the catalogs. This would require creating a foreign table for pg_class in the other databases.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2024-03-15 13:40:08 Re: operator is only a shell - Error
Previous Message Thiemo Kellner 2024-03-15 10:42:51 Re: select results on pg_class incomplete