X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B1A615E37D0 for ; Tue, 24 Aug 2004 20:54:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35536-10 for ; Tue, 24 Aug 2004 23:53:50 +0000 (GMT) Received: from hotmail.com (bay11-f22.bay11.hotmail.com [64.4.39.22]) by svr1.postgresql.org (Postfix) with ESMTP id CF8865E3639 for ; Tue, 24 Aug 2004 20:53:47 -0300 (ADT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 24 Aug 2004 16:53:51 -0700 Received: from 4.176.30.221 by by11fd.bay11.hotmail.msn.com with HTTP; Tue, 24 Aug 2004 23:53:51 GMT X-Originating-IP: [4.176.30.221] X-Originating-Email: [james_armstrong@msn.com] X-Sender: james_armstrong@msn.com From: "James Armstrong" To: pgsql-docs@postgresql.org Subject: Getting Started Example for FC2 Date: Tue, 24 Aug 2004 16:53:51 -0700 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_5904_6068_3945" Message-ID: X-OriginalArrivalTime: 24 Aug 2004 23:53:51.0934 (UTC) FILETIME=[9B7655E0:01C48A35] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=MIME_BOUND_NEXTPART X-Spam-Level: X-Archive-Number: 200408/45 X-Sequence-Number: 2505 This is a multi-part message in MIME format. ------=_NextPart_000_5904_6068_3945 Content-Type: text/plain; format=flowed 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. [whomever@wherever whomever]$ su Password: [root@wherever 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 [root@wherever whomever]# exit exit [whomever@wherever 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 [whomever@wherever whomever]$ ------=_NextPart_000_5904_6068_3945 Content-Type: text/plain; name="on_install_postgresql.txt"; format=flowed Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="on_install_postgresql.txt" 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. [whomever@wherever whomever]$ su Password: [root@wherever 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 [root@wherever whomever]# exit exit [whomever@wherever 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 [whomever@wherever whomever]$ ------=_NextPart_000_5904_6068_3945--