1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >User Attributes</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="Database Users and Privileges"
16 HREF="user-manag.html"><LINK
18 TITLE="Database Users and Privileges"
19 HREF="user-manag.html"><LINK
22 HREF="groups.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="user-manag.html"
60 HREF="user-manag.html"
67 >Chapter 17. Database Users and Privileges</TD
73 HREF="user-manag.html"
95 NAME="USER-ATTRIBUTES"
96 >17.2. User Attributes</A
99 > A database user may have a number of attributes that define its
100 privileges and interact with the client authentication system.
114 > A database superuser bypasses all permission checks. Also,
115 only a superuser can create new users. To create a database
133 > A user must be explicitly given permission to create databases
134 (except for superusers, since those bypass all permission
135 checks). To create such a user, use <TT
152 > A password is only significant if the client authentication
153 method requires the user to supply a password when connecting
154 to the database. The <VAR
164 > authentication methods
165 make use of passwords. Database passwords are separate from
166 operating system passwords. Specify a password upon user
184 A user's attributes can be modified after creation with
192 See the reference pages for <TT
202 > A user can also set personal defaults for many of the run-time
203 configuration settings described in <A
204 HREF="runtime-config.html"
206 >. For example, if for some reason you
207 want to disable index scans (hint: not a good idea) anytime you
210 CLASS="PROGRAMLISTING"
211 >ALTER USER myname SET enable_indexscan TO off;</PRE
213 This will save the setting (but not set it immediately) and in
214 subsequent connections it will appear as though <TT
216 >SET enable_indexscan
218 > had been called right before the session started.
219 You can still alter this setting during the session; it will only
220 be the default. To undo any such setting, use <TT
238 SUMMARY="Footer navigation table"
249 HREF="user-manag.html"
277 >Database Users and Privileges</TD
283 HREF="user-manag.html"