Re: ToDo List Item - System Table Index Clustering - Mailing list pgsql-hackers

From Nicolas Barbier
Subject Re: ToDo List Item - System Table Index Clustering
Date
Msg-id AANLkTi=XChKS1RzpOvCXQHs+Uv1aqAtSNrY24nixjEgF@mail.gmail.com
Whole thread Raw
In response to ToDo List Item - System Table Index Clustering  (Simone Aiken <saiken@ulfheim.net>)
Responses Re: ToDo List Item - System Table Index Clustering  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
2011/1/16 Simone Aiken <saiken@ulfheim.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


pgsql-hackers by date:

Previous
From: Simone Aiken
Date:
Subject: ToDo List Item - System Table Index Clustering
Next
From: Magnus Hagander
Date:
Subject: Re: psql: Add \dL to show languages