From https://www.postgresql.org/docs/9.5/static/view-pg-user.html under "System Catalogs"
The view pg_user provides access to information about database users. This is simply a publicly readable view of pg_shadow that blanks out the password field.
Is pg_user
a view or a catalog?
pg_user
is described under "System Catalogs" in the postgresq manual, which seems to suggestpg_user
is a catalog/database. ( Am I correct that a catalog is the same concept as a database? (I learned this from a highly upvoted post)?)But the quote calls
pg_user
a view. Which database's view ispg_user
? I didn't find the answer in the link, but I have seenpg_catalog.pg_user
works. Butpg_catalog
is not a catalog or database, but a schema of any database.
Thanks.