How about to have relnamespace and relrole? - Mailing list pgsql-hackers

From Kyotaro HORIGUCHI
Subject How about to have relnamespace and relrole?
Date
Msg-id 20150203.184941.152750602.horiguchi.kyotaro@lab.ntt.co.jp
Whole thread Raw
Responses Re: How about to have relnamespace and relrole?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello,

Most of OID types has reg* OID types. Theses are very convenient
when looking into system catalog/views, but there aren't OID
types for userid and namespace id.

What do you think about having these new OID types? The
usefulness of regnamespace is doubtful but regrole should be
useful because the column like 'owner' appears many places.

For example this works as follows.

====
SELECT relnamespace::regnamespace, relname, relowner::regrole
FROM pg_class WHERE relnamespace = 'public'::regnamespace;
relnamespace | relname | relowner 
--------------+---------+----------public       | t1      | horiguti
(1 row)


What do you think about this?

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Hot Standby WAL reply uses heavyweight session locks, but doesn't have enough infrastructure set up
Next
From: Marco Nenciarini
Date:
Subject: Re: File based Incremental backup v9