Re: [SQL] list of tables?

From: Oleg Broytmann <phd(at)comus(dot)ru>
To: "Jose' Soares Da Silva" <sferac(at)bo(dot)nettuno(dot)it>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] list of tables?
Date: 1998-05-21 09:30:09
Message-ID: Pine.LNX.3.96.SK.980521132853.21616L-100000@torus.comus.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello!

I see this SELECT every other day in mailbox. Isn't it a FAQ?

On Thu, 21 May 1998, Jose' Soares Da Silva wrote:
> -- list all and only tables/views...
> SELECT usename, relname
> FROM pg_class, pg_user
> WHERE ( relkind = 'r')
> AND relname !~ '^pg_'
> AND relname !~ '^xin[vx][0-9]+'
> AND usesysid = relowner
> ORDER BY relname;

Oleg.
----
Oleg Broytmann http://members.tripod.com/~phd2/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Chaitad Huangsamphan 1998-05-21 17:08:40 Are there JDBC that used with PostgreSQL?
Previous Message Jose' Soares Da Silva 1998-05-21 09:26:52 Re: [SQL] list of tables?