バージョンごとのドキュメント一覧

54.25. pg_shadow #

The view <structname>pg_shadow</structname> exists for backwards compatibility: it emulates a catalog that existed in <productname>PostgreSQL</productname> before version 8.1. It shows properties of all roles that are marked as <structfield>rolcanlogin</structfield> in <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>. pg_shadowビューは下位互換のために存在しています。 バージョン8.1以前のPostgreSQLに存在していたカタログを模擬します。 pg_authid内でrolcanloginのマークがついた全てのロールの属性を保持します。

The name stems from the fact that this table should not be readable by the public since it contains passwords. <link linkend="view-pg-user"><structname>pg_user</structname></link> is a publicly readable view on <structname>pg_shadow</structname> that blanks out the password field. 名前の由来は、このテーブルがパスワードを含むため、一般的には読めないことから来ています。 pg_userは、pg_shadowのビューですが、パスワードの列が空白となっているため一般に読むことが可能です。

表54.25 pg_shadowの列

<title><structname>pg_shadow</structname> Columns</title>

Column Type 列 型

Description 説明

usename name (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>rolname</structfield>) (参照先 pg_authid.rolname

User name ユーザ名

usesysid oid (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>oid</structfield>) (参照先 pg_authid.oid

ID of this user ユーザID

usecreatedb bool

User can create databases ユーザはデータベースを作成可能です。

usesuper bool

User is a superuser ユーザはスーパーユーザです。

userepl bool

User can initiate streaming replication and put the system in and out of backup mode. ユーザはストリーミングレプリケーションを開始することができ、システムをバックアップモードにしたり、戻したりできます。

usebypassrls bool

User bypasses every row-level security policy, see <xref linkend="ddl-rowsecurity"/> for more information. ユーザはすべての行単位セキュリティポリシーを無視します。 詳しくは5.8を参照してください。

passwd text

Password (possibly encrypted); null if none. See <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link> for details of how encrypted passwords are stored. (おそらく暗号化された)パスワード。 存在しない場合はNULLです。 暗号化されたパスワードの格納方法についてはpg_authidを参照してください。

valuntil timestamptz

Password expiry time (only used for password authentication) パスワード有効期限(パスワード認証でのみ使用)

useconfig text[]

Session defaults for run-time configuration variables 実行時設定変数のセッションデフォルト