Web site management - CHAPTER 29 SECURING POSTGRESQL template1=# d pg_shadow
Wednesday, May 21st, 2008CHAPTER 29 SECURING POSTGRESQL template1=# d pg_shadow Table “pg_catalog.pg_shadow” Column | Type | Modifiers ————-+———+———-usename | name | not null usesysid | integer | not null usecreatedb | boolean | not null usesuper | boolean | not null usecatupd | boolean | not null passwd | text | valuntil | abstime | useconfig | text[] | The various fields of the pg_shadow table break down as follows: usename: Column that stores the username. Usernames must be unique cluster-wide. usesysid: Column that stores an internal system ID for each user. Normally, the system ID for the superuser created at compile time is listed as 1, and users created afterward begin at 100 and increase serially. usecreatedb: System-level privilege that allows the user to create new databases on the system. The default for new users is false. usesuper: System-level privilege that determines if a user is a superuser. Making a user a superuser is akin to giving someone root access on Unix or setting them up as a system administrator on Windows, and so this should be used only when absolutely necessary. usecatupd: System-level privilege that allows the user to directly update the system catalogs. Because it is very easy to corrupt your database when modifying these tables, granting this privilege to users is not recommended. passwd: Field that stores the user s password, usually in an MD5-style encrypted format. valuntil: Field that sets a timeframe for the user s password to expire. Note that although the account in question remains unchanged, the user s password will no longer work. useconfig: List that stores modified, session defaults for run-time configuration variables. Note Since the pg_shadow table could contain password information, it is not intended for general use. Rather, in cases where users may want to find out system information, the pg_user view can be used instead. It looks exactly the same as pg_shadow, except the password information is always hidden behind a number of asterisks (*).
Check Tomcat Web Hosting services for best quality webspace to host your web application.