hi, all
patch attched,please review.
If a table has not WITH OIDS option.Try to find primary-key(prefered)/unique index.If it has not either of them, returns "ctid" as text type.
--Quan Zongliang