Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id KAA17491 for postgres-redist; Wed, 14 Sep 1994 10:34:32 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199409141734.KAA17491@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id KAA17479; Wed, 14 Sep 1994 10:34:31 -0700
Message-Id: <199409141734.KAA17479@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: bfroehli@AWI-Bremerhaven.DE (Bernd Froehlich)
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Number of instances 
Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki)
In-reply-to: Your message of Wed, 14 Sep 94 15:43:25 +0200 
	     <9409141343.AA06321@edvs1.awi-bremerhaven.de> 
Date: Wed, 14 Sep 94 10:34:31 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Wed, 14 Sep 94 10:34:32 -0700
Resent-XMts: smtp

bfroehli@AWI-Bremerhaven.DE (Bernd Froehlich) writes:
> I'm sure there is a way to get the number of instances in a class.
> Unfortunately I don't know it. Who can give me a hint?

the section in the reference manual on built-in functions describes
the built-in aggregates (such as they are).

retrieve (x = count{foo.oid})
--
  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.
==============================================================================
