[DOCS] More information in the FAQ

2005-01-29 Thread Stefan Midjich
Hi
As a new pgsql user i would love more answers from the FAQ, the manual 
is very confusing and full of information that i admit is important but 
you don't need to get started with pgsql. I suggest that more questions 
like "How do i add a user?", "How do i give a user permissions on a 
database" and "How do i create a database" are put into the FAQ as it is 
so much easier to browse an FAQ document where you get questions and 
answers, questions most beginners have in their head. I'm talking about 
simple one liners for the psql commandline that get the job done.
--


Med vänliga hälsningar
Stefan Midjich, Swebase AB
Tel: 042-20 15 00
Fax: 042-20 15 03
E-post: [EMAIL PROTECTED]
Webb: http://swebase.com
---(end of broadcast)---
TIP 8: explain analyze is your friend


Re: [DOCS] More information in the FAQ

2005-01-29 Thread Peter Eisentraut
Stefan Midjich wrote:
> As a new pgsql user i would love more answers from the FAQ, the
> manual is very confusing and full of information that i admit is
> important but you don't need to get started with pgsql.

Then you should read the tutorial.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faq


Re: [DOCS] FAQ 4.15 misleading about uniqueness of OIDs

2005-01-29 Thread Bruce Momjian
Michael Fuhr wrote:
> FAQ 4.15 "What is an OID? What is a TID?" is misleading about the
> uniqueness of OIDs.  It does mention the possibility of overflow
> (while mentioning that nobody has ever reported it), but it doesn't
> discourage their use as primary keys like the documentation does
> in, for example, the following sections:
> 
> http://www.postgresql.org/docs/8.0/static/datatype-oid.html
> http://www.postgresql.org/docs/8.0/static/ddl-system-columns.html

Wow, that one really needed updating!  Here is the new text:

---

4.15) What is an OID? What is a TID?

Every row that is created in PostgreSQL gets a unique OID unless created
WITHOUT OIDS. OIDs are autotomatically assigned unique 4-byte integers
that are unique across the entire installation. However, they overflow
at 4 billion, and then the OIDs start being duplicated. PostgreSQL uses
OIDs to link its internal system tables together.

To uniquely number columns in user tables, it is best to use SERIAL
rather than OIDs because SERIAL sequences are unique only within a
single table. and are therefore less likely to overflow. SERIAL8 is
available for storing eight-byte sequence values.

TIDs are used to identify specific physical rows with block and offset
values. TIDs change after rows are modified or reloaded. They are used
by index entries to point to physical rows.

-- 
  Bruce Momjian|  http://candle.pha.pa.us
  [email protected]   |  (610) 359-1001
  +  If your life is a hard drive, |  13 Roberts Road
  +  Christ can be your backup.|  Newtown Square, Pennsylvania 19073

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly