Create a UNIX user account to own and manage the PostgreSQL database files. Typically, this user is named
, but it can be named anything that you choose. For consistency throughout the book, the user
is considered the PostgreSQL root or superuser.
You will need to have root privileges to create the PostgreSQL superuser. On a Linux machine, you can use the
command shown in Example 2-5 to add the
Example 2-5. Adding the postgres User
su - -c "useradd postgres"
Do not try to use the
user as the PostgreSQL superuser. Doing so presents a large