Re: Postgresql functions

From: Grega Bremec <gregab(at)noviforum(dot)si>
To: Ivan Dario Salazar <ivansala6(at)hotmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Postgresql functions
Date: 2004-03-06 08:54:36
Message-ID: 20040306085436.GA4909@elbereth.noviforum.si
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

...and on Wed, Mar 03, 2004 at 12:04:25AM +0000, Ivan Dario Salazar used the keyboard:
> Hi there...
>
> I write it becouse i need to know where can i get a "SPECIFIC DOCUMENT"
> with the "Postgresql Administration Functions" like
>
> - Create User
> - Create Group

Hello Ivan,

There are a couple of options for you.

First off, there is this thing called "PostgreSQL Documentation", it is a
part of the source distribution, but it can also be downloaded separately,
the file is called postgresql-docs-<version>.tar.bz2 in the PostgreSQL
download archives, and it documents all SQL commands available to the user
in much detail in subsection 7.1, "VI. Reference / I. SQL Commands".

If you're interested in a text focusing more on user and privilege
administration, you can also take a look at chapter 17., "Database users
and Privileges" of that same documentation bundle.

One very convenient option would be using the \h internal slash command of
your psql command-line client. Try "\h" on the line alone to get a full
list of SQL commands you have help available on, then, use, for example,

template1=# \h CREATE USER
Command: CREATE USER
Description: define a new database user account
Syntax:
CREATE USER name [ [ WITH ] option [ ... ] ]

where option can be:

SYSID uid
| [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password'
| CREATEDB | NOCREATEDB
| CREATEUSER | NOCREATEUSER
| IN GROUP groupname [, ...]
| VALID UNTIL 'abstime'

Hope this helped.
--
Grega Bremec
Senior Administrator
Noviforum Ltd., Software & Media
http://www.noviforum.si/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Silvana Di Martino 2004-03-06 08:57:40 pgcrypto, password sharing and privacy law
Previous Message Silvana Di Martino 2004-03-06 08:24:40 Re: Database Encryption (now required by law in Italy)