Re: ToDo List Item - System Table Index Clustering

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Simone Aiken <saiken(at)ulfheim(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ToDo List Item - System Table Index Clustering
Date: 2011-01-16 11:29:37
Message-ID: AANLkTi=XChKS1RzpOvCXQHs+Uv1aqAtSNrY24nixjEgF@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011/1/16 Simone Aiken <saiken(at)ulfheim(dot)net>:

>        is there a way to make queries on the system tables show me what
>        is actually there when I'm poking around?  So for example:
>
>                Select * from pg_type limit 1;
>
>        tells me that the typoutput is 'boolout'.  An english string rather than
>        a number.  So even though the documentation says that column
>        maps to pg_proc.oid I can't then write:
>
>                Select * from pg_proc where oid = 'boolout';

Type type of typoutput is "regproc", which is really an oid with a
different output function. To get the numeric value, do:

Select typoutput::oid from pg_type limit 1;

Nicolas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2011-01-16 12:04:30 Re: psql: Add \dL to show languages
Previous Message Greg Smith 2011-01-16 07:28:58 Re: Spread checkpoint sync