Skip site navigation (1) Skip section navigation (2)

Re: ToDo List Item - System Table Index Clustering

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
Cc: Simone Aiken <saiken(at)ulfheim(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: ToDo List Item - System Table Index Clustering
Date: 2011-01-16 16:34:31
Message-ID: 8460.1295195671@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com> writes:
> 2011/1/16 Simone Aiken <saiken(at)ulfheim(dot)net>:
>>        ... 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;

Also, you *can* go back the other way.  It's very common to write

               Select * from pg_proc where oid = 'boolout'::regproc

rather than looking up the OID first.  There are similar pseudotypes for
relation and operator names; see "Object Identifier Types" in the
manual.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2011-01-16 16:47:35
Subject: Re: We need to log aborted autovacuums
Previous:From: Tom LaneDate: 2011-01-16 16:29:24
Subject: Re: walreceiver fallback_application_name

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group