Re: [DOCS] runtime-config.sgml

2004-08-24 Thread Josh Berkus
Peter,

> We currently have a one file per chapter arrangement, and I think it
> would be best if we kept that.  The more exceptions we add, the more
> difficult it will be to handle.

Hmmm ... I'm not so concerned about the number of *files* as about the number 
of *screens*.   Is there anything we can do to break up long chapters like 
this?

-- 
Josh Berkus
Aglio Database Solutions
San Francisco

---(end of broadcast)---
TIP 6: Have you searched our list archives?

   http://archives.postgresql.org


[DOCS] docs correction (8.0 beta)

2004-08-24 Thread John DeSoi
From the example below and looking at scan.c, it seems that nested 
block comments are supported.

test=# select /* /* nested */ */ 1;
 ?column?
--
1
(1 row)

From section 35.3:
There are two types of comments in PL/pgSQL. A double  dash (--) starts 
a comment that extends to the end of  the line. A /* starts a block 
comment that extends to  the next occurrence of */. Block comments 
cannot be  nested, but double dash comments can be enclosed into a 
block comment and  a double dash can hide the block comment delimiters 
/*  and */.

---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


Re: [DOCS] docs correction (8.0 beta)

2004-08-24 Thread Tom Lane
John DeSoi <[EMAIL PROTECTED]> writes:
>  From the example below and looking at scan.c, it seems that nested 
> block comments are supported.

You are confusing SQL and PL/pgSQL.

regards, tom lane

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


[DOCS] Getting Started Example for FC2

2004-08-24 Thread James Armstrong
Hello,
I've just installed postgreSQL on my Fedora Core 2 system and found myself 
back in a position that I was in right after I installed it on Redhat.  As 
before, I was wondering how much of the documented source-to-execution 
intallation procedure was already done by the RPM install and by 
implication, what my next step should or could be.  Also, I was not finding 
things in the same locations that they were in on my RHEL system, possibly 
because I did do a "from-source" install there at one time.  I resolved to 
take notes this time.  I'm offering you the results so you can put it in the 
FAQ under the heading: "I just installed my RPMs on FC2.  Now what?"

Getting started with postgresql on Fedora Core 2
This is what you can do right after you have installed
postgreSQL on your Fedora Core 2 system with a command like:
yum install postgresql*
Step 1: Start the postgreSQL daemon.
(For GNOME use the "[RED HAT]^System Settings>Server Settings>Services"
menu item to start the Service Configuration application.  Then make sure
the [] postgresql item is checked in the list on the left side of the
Service Configuration application window.
If you had to change the item to make it checked, hit the "Save" button.
if you don't see something like:
postmaster (pid 4479 4478 4474) is running...
in the status box hit the start button while the
[] postgesql item is still highlighted.)
Step 2: Create a database for yourself.
[EMAIL PROTECTED] whomever]$ su
Password:
[EMAIL PROTECTED] whomever]# su - postgres
-bash-2.05b$ createdb test
CREATE DATABASE
-bash-2.05b$ psql test
Welcome to psql 7.4.2, the PostgreSQL interactive terminal.
Type:  \copyright for distribution terms
  \h for help with SQL commands
  \? for help on internal slash commands
  \g or terminate with semicolon to execute query
  \q to quit
test=# CREATE USER whomever;
CREATE USER
test=# CREATE DATABASE whomever;
CREATE DATABASE
test=# GRANT ALL PRIVILEGES ON DATABASE whomever TO whomever;
GRANT
test=# \q
-bash-2.05b$ exit
logout
[EMAIL PROTECTED] whomever]# exit
exit
[EMAIL PROTECTED] whomever]$ psql
Welcome to psql 7.4.2, the PostgreSQL interactive terminal.
Type:  \copyright for distribution terms
  \h for help with SQL commands
  \? for help on internal slash commands
  \g or terminate with semicolon to execute query
  \q to quit
whomever=> CREATE TABLE MY_TABLE (MY_COLUMN INTEGER);
CREATE TABLE
whomever=> INSERT INTO MY_TABLE(MY_COLUMN) VALUES(1);
INSERT 17146 1
whomever=> SELECT * FROM MY_TABLE;
my_column
---
1
(1 row)
whomever=> \q
[EMAIL PROTECTED] whomever]$
Getting started with postgresql on Fedora Core 2
This is what you can do right after you have installed
postgreSQL on your Fedora Core 2 system with a command like:
yum install postgresql*
Step 1: Start the postgreSQL daemon.
(For GNOME use the "[RED HAT]^System Settings>Server Settings>Services"
menu item to start the Service Configuration application.  Then make sure
the [] postgresql item is checked in the list on the left side of the
Service Configuration application window.
If you had to change the item to make it checked, hit the "Save" button.
if you don't see something like:
postmaster (pid 4479 4478 4474) is running...
in the status box hit the start button while the
[] postgesql item is still highlighted.)
Step 2: Create a database for yourself.
[EMAIL PROTECTED] whomever]$ su
Password:
[EMAIL PROTECTED] whomever]# su - postgres
-bash-2.05b$ createdb test
CREATE DATABASE
-bash-2.05b$ psql test
Welcome to psql 7.4.2, the PostgreSQL interactive terminal.
Type:  \copyright for distribution terms
  \h for help with SQL commands
  \? for help on internal slash commands
  \g or terminate with semicolon to execute query
  \q to quit
test=# CREATE USER whomever;
CREATE USER
test=# CREATE DATABASE whomever;
CREATE DATABASE
test=# GRANT ALL PRIVILEGES ON DATABASE whomever TO whomever;
GRANT
test=# \q
-bash-2.05b$ exit
logout
[EMAIL PROTECTED] whomever]# exit
exit
[EMAIL PROTECTED] whomever]$ psql
Welcome to psql 7.4.2, the PostgreSQL interactive terminal.
Type:  \copyright for distribution terms
  \h for help with SQL commands
  \? for help on internal slash commands
  \g or terminate with semicolon to execute query
  \q to quit
whomever=> CREATE TABLE MY_TABLE (MY_COLUMN INTEGER);
CREATE TABLE
whomever=> INSERT INTO MY_TABLE(MY_COLUMN) VALUES(1);
INSERT 17146 1
whomever=> SELECT * FROM MY_TABLE;
my_column
---
1
(1 row)
whomever=> \q
[EMAIL PROTECTED] whomever]$

---(end of broadcast)---
TIP 8: explain analyze is your friend


Re: [DOCS] Getting Started Example for FC2

2004-08-24 Thread Robert Treat
On Tuesday 24 August 2004 19:53, James Armstrong wrote:
> Hello,
>
> I've just installed postgreSQL on my Fedora Core 2 system and found myself
> back in a position that I was in right after I installed it on Redhat.  As
> before, I was wondering how much of the documented source-to-execution
> intallation procedure was already done by the RPM install and by
> implication, what my next step should or could be.  Also, I was not finding
> things in the same locations that they were in on my RHEL system, possibly
> because I did do a "from-source" install there at one time.  I resolved to
> take notes this time.  I'm offering you the results so you can put it in
> the FAQ under the heading: "I just installed my RPMs on FC2.  Now what?"
>

ISTM this should go up onto techdocs rather than in the regular documentation? 
If there are no objections I'll put it on my todo list. 

-- 
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings