Re: retrieve the tables names based on the owner

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: Antonis Antoniou <a(dot)antoniou(at)albourne(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: retrieve the tables names based on the owner
Date: 2004-08-06 09:17:19
Message-ID: Pine.LNX.4.44.0408061216510.6004-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

O kyrios Antonis Antoniou egrapse stis Aug 6, 2004 :

> Hi guys,

Kalhmera Antoni!

>
> How can I retrieve (with a query) from a database, only the table names
> based on the owner name?
>

SELECT schemaname||'.'||tablename from pg_tables where
tableowner='postgres';

>
> Many Thanks
> Antonis
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
-Achilleus

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Antonis Antoniou 2004-08-06 09:53:12 retrieve the tables names based on the owner
Previous Message Tom Lane 2004-08-06 07:07:27 Re: SQL syntax extentions - to put postgres ahead in the race