agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedHow to get list of classes without indexes
2+ messages / 2 participants
[nested] [flat]
* How to get list of classes without indexes
@ 1995-04-25 09:39 Kacper Nowicki <Kacper.Nowicki@fuw.edu.pl>
0 siblings, 1 reply; 2+ messages in thread
From: Kacper Nowicki @ 1995-04-25 09:39 UTC (permalink / raw)
To: legacy
Hi,
I use following query to get list of classes in database. Unfortunatelly
I get also indexes created for those classes. How could I exclude indexes
from this list ?
retrieve (pg_class.relname)
I select user classes removing everything beginning with 'pg_'. Is there
a better way to get rid of POSTGRES internal classes ?
Thanks in advance,
Kacper
------------------------------------------------------------------------
Kacper Nowicki e-mail: Kacper.Nowicki@fuw.edu.pl
Warsaw University =================================
Physics Department Computer Center
Hoza 69, 00-681 Warszawa, Poland fax:(48)(22)294309,(48)(2)6226154
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to get list of classes without indexes
@ 1995-04-25 19:31 Paul M. Aoki <aoki@cs.berkeley.edu>
parent: Kacper Nowicki <Kacper.Nowicki@fuw.edu.pl>
0 siblings, 0 replies; 2+ messages in thread
From: Paul M. Aoki @ 1995-04-25 19:31 UTC (permalink / raw)
To: Kacper Nowicki <Kacper.Nowicki@fuw.edu.pl>; +Cc: legacy
Kacper Nowicki <Kacper.Nowicki@fuw.edu.pl> writes:
> I use following query to get list of classes in database. Unfortunatelly
> I get also indexes created for those classes. How could I exclude indexes
> from this list ?
section 15.4 of the user manual includes several example
administrative queries, including:
retrieve (class_name = c.relname)
from c in pg_class
where c.relkind = 'r' /* no indices */
and c.relname !~ "^pg_" /* no catalogs */
sort by class_name
\g
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
| Berkeley, CA 94720-1776
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1995-04-25 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1995-04-25 09:39 How to get list of classes without indexes Kacper Nowicki <Kacper.Nowicki@fuw.edu.pl>
1995-04-25 19:31 ` Paul M. Aoki <aoki@cs.berkeley.edu>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox