Re: pg_typeof() patch review - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pg_typeof() patch review
Date
Msg-id 20081103185235.GT4509@alvh.no-ip.org
Whole thread Raw
In response to Re: pg_typeof() patch review  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: pg_typeof() patch review  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
David E. Wheeler escribió:

> Well, as someone who was until recently unfamiliar with regtypes, and  
> who thinks of an OID as essentially just a number, I would find it very 
> useful if the description indicated that, as a regtype, the return value 
> could be used as either an OID or as string. Otherwise, I'd find the 
> description kind of confusing (in one place it says it returns a regtype, 
> "whatever *that* is", and in one place it says an OID).

Give this a read
http://www.postgresql.org/docs/8.3/static/datatype-oid.html

Maybe we should link to this page in the pg_typeof() description.  Also,
perhaps this page needs more examples.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: pg_typeof() patch review
Next
From: "David E. Wheeler"
Date:
Subject: Re: pg_typeof() patch review