Re: retrieve the tables names based on the owner - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: retrieve the tables names based on the owner
Date
Msg-id Pine.LNX.4.44.0408061216510.6004-100000@matrix.gatewaynet.com
Whole thread Raw
In response to retrieve the tables names based on the owner  ("Antonis Antoniou" <a.antoniou@albourne.com>)
Responses SQL_ASCII and UNICODE server_encoding
List 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



pgsql-sql by date:

Previous
From: "Antonis Antoniou"
Date:
Subject: retrieve the tables names based on the owner
Next
From: Tom Lane
Date:
Subject: Re: SQL syntax extentions - to put postgres ahead in the race