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