LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2004, 04:27 AM   #1
jamna17
LQ Newbie
 
Registered: Apr 2004
Distribution: FreeBSD 4.9
Posts: 10

Rep: Reputation: 0
Question postgres data


hi,

i installed a system that comes packaged with redhat 8.

i know that my data is stored in postgresql but i cant seem to locate the database/data.

any ideas?

thanx
 
Old 04-07-2004, 04:40 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
hi there,

you must start the postgres shell, psql. this is by default located in /usr/local/pgsql/bin/psql. this is postgres default, don't know if redhat stores it here but with slocate you should be able to locate this if it isn't there. check the postgres documentation on how to create / manage databases etc, they have real good docs in pdf if you don't want to work with the command shell, there's a grafics interface called pgadmin (somewhere on the postgres.com website) wich is really good

succes,
-= iluvatar =-
 
Old 04-07-2004, 05:00 AM   #3
jamna17
LQ Newbie
 
Registered: Apr 2004
Distribution: FreeBSD 4.9
Posts: 10

Original Poster
Rep: Reputation: 0
hey there,

located psql in user\bin using slocate :-)

going thru the pdfs

thanks for the info!
 
Old 04-07-2004, 05:40 AM   #4
jamna17
LQ Newbie
 
Registered: Apr 2004
Distribution: FreeBSD 4.9
Posts: 10

Original Poster
Rep: Reputation: 0
hi

found my database found my tables
how on earth do i view the data in the tables without making any alterations?
 
Old 04-07-2004, 05:45 AM   #5
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
when entering the postgres shell, you can use normal SQL commands (there's a good SQL reference included in the postgres documentation)

use this to view data:
select * from <table>;

or with criteria:
select * from <table> where <field>="<value>";

I don't use pgadmin but i thought it had a function to view the data... not sure...

and so on and so forth... you should really dive into the SQL language and syntax

greetz,
-= iluvatar =-

ps: dont forget the ';' dot-comma at the end of a line, this will make postgres execute the line

Last edited by iluvatar; 04-07-2004 at 05:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postgres Hiper1 Linux - Newbie 8 04-10-2005 05:43 PM
Postgres setup rickh Linux - Software 4 02-27-2005 03:44 PM
PostGres Installation.... gvsprasad Linux - Enterprise 1 09-01-2004 05:29 AM
MySQL or PostGres ?? Peds Linux - Software 5 02-17-2004 11:43 PM
starting postgres 7.2.2 lolmc Linux - Software 4 02-26-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration