Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjl3x-0002MZ-9H for pgsql-admin@arkaria.postgresql.org; Tue, 13 Sep 2016 10:35:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjl3w-0007qb-SK for pgsql-admin@arkaria.postgresql.org; Tue, 13 Sep 2016 10:35:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjl2G-0005LM-6p for pgsql-admin@postgresql.org; Tue, 13 Sep 2016 10:33:52 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bjl28-0007ei-SQ for pgsql-admin@postgresql.org; Tue, 13 Sep 2016 10:33:50 +0000 Received: by mail-wm0-x230.google.com with SMTP id 1so192824570wmz.1 for ; Tue, 13 Sep 2016 03:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=DjbSKilhPoJP9lTk+UoX0SETDSafaiN2bCkgRiTc6Wo=; b=uHkLFjwwGQfc0YEpgJ/3tfvQCKsziOMUbZpLyjhnuKtCTKtWqDmw5SuRLtfduuxVCN 5b1Ch4VWedbaExTgkbDMVRpR/TLnGxG5btiBU8MlNPUFz9/QjaRypcXQLJ1nJC/OxNXj wGVmy1a2cwXSEWrEecxFyaIA+5cRalYgDAOQwgwm/rCza28Kk34rky2zQSy2WI6MPr5a l8Aal2E3dXP6A62VzTjIvOa3o+lwZXC7Vjrgzmz9V8r+x+AQT58lKvn9REi9F6cTdA4g FqTc5yNfVtQxmeIcE5r/aHAOzZDyEBxkIzCmKuidjcDOJXn+WL1w41MgvRPgropVjFFw CKxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:reply-to:to:date :in-reply-to:references:mime-version:content-transfer-encoding; bh=DjbSKilhPoJP9lTk+UoX0SETDSafaiN2bCkgRiTc6Wo=; b=ecNjMXfHozhIlbOctENtvbxKQqqb0x1JWppfsQb9EqaJpYGFcXNU6MBMEaqy/qd9xe E/+PBm2WdCi023dvKw8dIBDwC5OvcVCO1EUzDBHDmZBj/lQ1oyqsJotHQdbxfVE2SCIm i9jDUvw5gQV9go2msBfePaxCB78gphLVnp25BrTlsC1jJH2TRAUiAL1YXWl+PxXVHNvj ZWjmE8t+48qbCmh9+2hGbNPVlFxODQ01YFKBo8EhWfu2IqYQzTHn2Aws5+T5xCygfqtb IDxK/Dvnb8XiDhzSf3EsCX3GNdYM/H9h06eOD8Fus3wSOjUF3ZC0aAlG8l2MG8hOnLEx dSSQ== X-Gm-Message-State: AE9vXwOtWWLRqQhOS3GsDzBoH/mtFkml1jG434Qr+U2Uf/YKFgxQKjn/ZI359TqC6CKHjg== X-Received: by 10.28.65.214 with SMTP id o205mr4259339wma.14.1473762823016; Tue, 13 Sep 2016 03:33:43 -0700 (PDT) Received: from enterprisedb01 (27.red-213-96-140.staticip.rima-tde.net. [213.96.140.27]) by smtp.googlemail.com with ESMTPSA id v189sm4623797wmv.12.2016.09.13.03.33.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 03:33:41 -0700 (PDT) Message-ID: <1473762821.896.1.camel@gmail.com> Subject: Re: How to list ALL PostgreSQL functions? From: jaime soler Reply-To: jaime.soler@gmail.com To: Poul Kristensen , pgsql-admin@postgresql.org Date: Tue, 13 Sep 2016 12:33:41 +0200 In-Reply-To: References: <38EB733C-FDF1-4644-ACC9-49D0CA125F79@simply.name> <20160912105651.43vut4eeaxk25rg3@depesz.com> <20160912112224.r4343jfzxiznoqpi@depesz.com> <19291.1473681414@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org El lun, 12-09-2016 a las 20:00 +0200, Poul Kristensen escribió: > > Thanks a lot. > > How to size HW resources on a physical server for PG95+? Please create a new thread and try to avoid mixing subjects  > > What does PG95+ like? Cpu? L1(expensive I think) 2 or 3 cache level?. > RAM? > > Any idea? > > Thanks > > Poul > > > > 2016-09-12 13:56 GMT+02:00 Tom Lane : > > hubert depesz lubaczewski writes: > > > \df gives you list of user functions. you can add more > > parameters, to > > > limit/extend the list. > > > like: > > > \df pg_* > > > will list all functions (including system one) that start with > > pg_ > > > \dfS > > > will list all system functions > > > \df+ *xlog* > > > will list all functions (including system) that contain "xlog" in > > their > > > name, with some additional columns, which include "description" - > > one > > > line info about the function. > > > > Also, you can make your own queries on pg_proc, which is all that > > psql is > > doing here.  A nice abbreviated form is > > > > select oid::regprocedure, obj_description(oid, 'pg_proc') from > > pg_proc; > > > > which gives you just the name, arg types, and comment for each row. > > > > Keep in mind that > > > > 1. This will show you an awful lot of stuff that's not meant to be > > called > > directly from SQL, eg I/O functions, operator implementation > > functions, > > aggregate support functions, cast functions, index support > > functions. > > I count 2831 rows in pg_proc in a virgin installation as of HEAD, > > and > > probably not even 1000 of them are really meant to be called as > > functions > > in ordinary queries. > > > > 2. This will not show you some things that look like functions but > > are > > implemented by special grammar productions.  For that you'd have to > > look into src/backend/parser/gram.y. > > > >                         regards, tom lane > > > > > --  > Med venlig hilsen / Best regards > Poul Kristensen > Linux-OS/Virtualizationexpert and Oracle DBA -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin