Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id MAA29795 for postgres-redist; Tue, 25 Apr 1995 12:31:57 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199504251931.MAA29795@nobozo.CS.Berkeley.EDU> Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.37.53]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with ESMTP id MAA29785 for ; Tue, 25 Apr 1995 12:31:56 -0700 Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.11/8.6.3) with SMTP id MAA00954; Tue, 25 Apr 1995 12:31:33 -0700 Message-Id: <199504251931.MAA00954@faerie.CS.Berkeley.EDU> X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol From: aoki@cs.berkeley.edu (Paul M. Aoki) To: Kacper Nowicki Cc: postgres@postgres.Berkeley.EDU Subject: Re: How to get list of classes without indexes Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki) In-reply-to: Your message of Tue, 25 Apr 1995 11:39:54 +0200 (MET DST) Date: Tue, 25 Apr 95 12:31:33 -0700 X-Sender: aoki@postgres.Berkeley.EDU Resent-To: postgres-redist@postgres.Berkeley.EDU X-Mts: smtp Resent-Date: Tue, 25 Apr 95 12:31:57 -0700 Resent-XMts: smtp Kacper Nowicki 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/