Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

PostgreSQL Guide Feedback

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
33 posts
  • 1
  • 2
  • Next
Author
Message
ChrisWhite
Retired Dev
Retired Dev
User avatar
Posts: 399
Joined: Thu Jul 08, 2004 7:19 pm
Location: Stockton, CA
Contact:
Contact ChrisWhite
Website

PostgreSQL Guide Feedback

  • Quote

Post by ChrisWhite » Thu Mar 16, 2006 6:35 pm

Hey all,

I did a guide on PostgreSQL setup located here:

http://www.gentoo.org/doc/en/postgres-howto.xml

and would like feedback on it. As with everything else, I can't guarantee I'll accept everyone's sugestions,
but I'll sure be appreciative :).

Anyways, I'm mainly doing this as it's a draft, and I need to see how people expect to use it.

Thanks to everyone!

Mod edit: Stuck for a while, --kallamej
Unstuck. -- desultory
Top
davidblewett
Apprentice
Apprentice
User avatar
Posts: 274
Joined: Sun Feb 15, 2004 2:23 am
Location: Indiana

  • Quote

Post by davidblewett » Thu Mar 16, 2006 8:30 pm

Wow, I wish this had been available a few months ago when I was getting into Postgres for the first time on Gentoo. Anyway, thanks!

One nitpick:
In the USE flag section this line:
nls If this option is enabled, PostgreSQL can utilized translated strings for non-English speaking users.
Should be:
nls If this option is enabled, PostgreSQL can utilize translated strings for non-English speaking users.
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Top
ChrisWhite
Retired Dev
Retired Dev
User avatar
Posts: 399
Joined: Thu Jul 08, 2004 7:19 pm
Location: Stockton, CA
Contact:
Contact ChrisWhite
Website

  • Quote

Post by ChrisWhite » Thu Mar 16, 2006 8:43 pm

ack, thanks for catching that, I'll toss it to the next docs person I see.
Top
Ateo
Advocate
Advocate
Posts: 2022
Joined: Mon Jun 02, 2003 11:47 pm
Location: Vegas Baby!

  • Quote

Post by Ateo » Wed Mar 22, 2006 8:06 am

The guide works well. Thanks!!
Top
giant
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 107
Joined: Thu Aug 01, 2002 10:25 am
Contact:
Contact giant
Website

  • Quote

Post by giant » Wed Mar 29, 2006 7:00 am

Nice overview :-)

Had no problem installing a nice little postgres server with it !

Thanks a lot for the guide !
Top
PaveQ
Apprentice
Apprentice
Posts: 225
Joined: Fri Feb 11, 2005 5:25 pm
Location: Finland
Contact:
Contact PaveQ
Website

  • Quote

Post by PaveQ » Wed Mar 29, 2006 10:50 am

Thanks, thats great! :D
Top
beandog
Bodhisattva
Bodhisattva
User avatar
Posts: 2074
Joined: Sun May 04, 2003 11:53 pm
Location: /usa/utah
Contact:
Contact beandog
Website

  • Quote

Post by beandog » Mon Apr 17, 2006 5:44 am

Just a couple of things.

First off, I wouldnt start off the introduction with a comparison / rip on MySQL. I agree with you 100% of course, but I'd take a line from this instead.

Another thing, I would change this:

"To start out, let's create a test database by using the createdb command. We'll also pass along the -U option to set the user (it defaults to the current user name if you don't), ..."

I'd change "the current user name" part to something like "the current user logged in (root, for example)." Something along those lines to distinguish that you're talking about system users, not psql users.

Last thing, it might be kind of nice to throw in some environment variables that can be set, such as PG_USER, so I don't have to pass -U each time. :)

Looking good, though.
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Tue Apr 18, 2006 3:19 am

You've got the exact same issues as your Mysql How-to, near total lack of Gentoo specific info.

Things that would actually fix user probems before they have them:

1. Discussion of config files. /var/lib/postgressql/pg_hba.conf and /etc/conf.d/postgresql should be mentioned and the user might need to touch these to get what they want.

2. Bound to localhost by default. Gentoo default is to bind database to localhost by default. THe guide should explain that and how to change. If you're feeling like an overachiever you can even discuss IP and username ACL's

3. How to delete the database and start from scratch. Every user screws up their db and want to start from scratch or at least from a point where they can get back into their database.

There are a thousand plus places I can go to learn how to insert into Postgres and hardly any that has reliable Gentoo specific info about how Postgres was installed, where the config files are, and some of the default settings. The Gentoo docs should cover the Gentoo specific cases before doing anything else.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Mad Merlin
Veteran
Veteran
Posts: 1155
Joined: Mon May 09, 2005 7:37 pm
Contact:
Contact Mad Merlin
Website

  • Quote

Post by Mad Merlin » Tue May 16, 2006 11:05 pm

Foreign keys have been supported in MySQL for InnoDB tables since version 3.23. Some things that were added in MySQL 5 were views, stored procedures and triggers.

You're free to bash MySQL if you want to, but please get your facts straight. See here: http://dev.mysql.com/doc/refman/5.0/en/ ... -keys.html
Game! - Where the stick is mightier than the sword!
Top
castaway
n00b
n00b
Posts: 23
Joined: Fri Feb 18, 2005 10:35 pm
Location: Swindon, UK

libpq ?

  • Quote

Post by castaway » Tue May 23, 2006 9:04 am

You might want to mention the library-only package, "libpq" in there somewhere..

This is what I went there looking for, and ended up asking on #gentoo instead ;)

C.
Top
mkb137
n00b
n00b
User avatar
Posts: 33
Joined: Mon May 13, 2002 7:29 pm
Location: Calgary, Canada
Contact:
Contact mkb137
Website

  • Quote

Post by mkb137 » Sat Jun 10, 2006 5:46 pm

I followed the guide and liked it.

After setting up all those users and passwords, I was suprised to find that the database would accept my connections and changes no matter what password I gave. After some other research I found out why : the "trust" option in pg_hba.conf. I don't know if want to mention that in your guide or not.
Top
Wicked Wesley
n00b
n00b
User avatar
Posts: 70
Joined: Thu May 20, 2004 6:32 pm
Location: Here
Contact:
Contact Wicked Wesley
Website

  • Quote

Post by Wicked Wesley » Tue Jun 13, 2006 9:25 pm

The guide looks good!

Maybe you should add a note about PGAdmin, in my opinion a nice PostgreSQL application, which is available in Portage, dev-db/pgadmin3.

Keep up the good work,
Wesley
The Jester!
Linux user 357122!
Top
Ateo
Advocate
Advocate
Posts: 2022
Joined: Mon Jun 02, 2003 11:47 pm
Location: Vegas Baby!

  • Quote

Post by Ateo » Thu Jun 22, 2006 8:27 pm

Code: Select all

$ createuser -a -d -P -E -U postgres -W chris
Should be:

Code: Select all

$ createuser -s -d -P -E -U postgres -W chris

Code: Select all

$ createuser -A -D -P -E -U postgres -W chris
Should be:

Code: Select all

$ createuser -S -d -P -E -U postgres -W chris
shadow ~ # createuser --help |grep superuser
-s, --superuser role will be superuser
-S, --no-superuser role will not be superuser
Top
dec
n00b
n00b
Posts: 63
Joined: Fri Jul 18, 2003 3:20 am

  • Quote

Post by dec » Sat Jul 08, 2006 6:15 am

Ideas/suggestions:
  • Backups - briefly mention pgdump and online/PITR backups - having a great database is useless without backups!
  • More postgresql.org references - the documentation on postgresql.org is fantastic and should be mentioned more often than just the very last sentence.
  • Performance - out of the box postgres can be a little sluggish on a large DB, point everyone to the performance guide on powerpostgresql.com

Tom
Top
intgr
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Wed Jun 23, 2004 5:15 am
Location: Earth, Sol, Milky Way
Contact:
Contact intgr
Website

  • Quote

Post by intgr » Fri Jul 14, 2006 3:35 pm

Note that the 'Oracle Reference Guide' link in the description of the 'pg-hier' USE flag is broken, you seem to have inserted spaces into it.
The correct link is http://www.lc.leidenuniv.nl/awcourse/or ... ries4a.htm
Top
GoofballJM1
Guru
Guru
User avatar
Posts: 392
Joined: Mon Mar 22, 2004 3:06 pm
Location: Denver, CO USA
Contact:
Contact GoofballJM1
Website

  • Quote

Post by GoofballJM1 » Thu Jan 11, 2007 4:09 pm

Although it's not as severe as with MySQL, but an upgrade guide for Postgres would be very helpful. Having information regarding that will save many of us novice Postgres users a little time from scrounging through the forums and on google. :wink:
"Great spirits have often encountered violent opposition from weak minds." - Albert Einstein
Top
jmanko
Tux's lil' helper
Tux's lil' helper
Posts: 139
Joined: Sun Sep 11, 2005 5:41 pm
Location: NEPA, USA

  • Quote

Post by jmanko » Mon Jan 15, 2007 10:00 pm

I started to follow this tutorial, but I get:

Code: Select all

createuser: could not connect to database postgres: FATAL:  could not open file "global/pg_database": No such file or directory
I also notice I keep getting a *.pid message when restarting Postgresql

Code: Select all

# /etc/init.d/postgresql restart
 * Stopping PostgreSQL ...
No process in pidfile `/var/lib/postgresql/data/postmaster.pid' found running; none killed.                                                         [ ok ]
 * Starting PostgreSQL ...  
Any ideas?
"What stands in the way becomes the way." -- Marcus Aurelius
Top
_pF_
Apprentice
Apprentice
Posts: 195
Joined: Thu Apr 22, 2004 2:54 pm
Location: Central London

  • Quote

Post by _pF_ » Mon Jan 22, 2007 10:58 am

The emerge --config creates by default b0rked databases that don't support utf8. I know it's not yet supported, but the 8.2 ebuild doesn't have an emerge --config at all.
CORRVPTISSIMA RE PVBLICA PLVRIMAE LEGES
Top
Frelon
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Sun Oct 10, 2004 7:50 am
Location: France
Contact:
Contact Frelon
Website

  • Quote

Post by Frelon » Sat Feb 17, 2007 9:28 am

Hi,
I have also the error when trying to create a db (sorry for french output) :

Code: Select all

stan@hermes ~/Bommings/bommings-dev $ createdb -U postgres -W test
Mot de passe : 
createdb: échec lors de la connexion à la base de données postgres: FATAL:  n'a pas pu ouvrir le fichier «global/pg_database» : Aucun fichier ou répertoire de ce type
I followed the howto, change postgres user passwd etc.

Thx !

EDIT : I fixed that in killing -9 the postgres process rather than /etc/init.d/postgresql restart which restart nothing !!!
http://stan.openmod.org
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Mon Feb 26, 2007 11:10 pm

GoofballJM1 wrote:Although it's not as severe as with MySQL, but an upgrade guide for Postgres would be very helpful. Having information regarding that will save many of us novice Postgres users a little time from scrounging through the forums and on google. :wink:
heh. Obviously you've never tried to update from Postgres 7.2 to 7.4. Or from 7.4 to 8.0. Bloody nightmare if you've got databases of any complexity. On top of all that Postgres can not replicate between different versions so database updates of Postgres always require extensive downtime rather than the Mysql way of updating a slave and then promoting it to master. Some downtime is required, but you're not waiting for 40 minute imports of your database dumps to finish.

I'd say there definitely needs to be a Postgres update guide even though things have been relatively calm in the 8.0+ versions.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Sun Mar 11, 2007 2:23 am

Maybe somebody can help me here.
After upgrading several perl scripts yesterda, when I try to log-in to sql-ledger I get an error:
apache log:

Code: Select all

/usr/local/sql-ledger/login.pl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/DBD/Pg/Pg.so: undefined symbol: PQserverVersion
[client 127.0.0.1] Premature end of script headers: login.pl
Can anybody point me in the right direction?
Top
Highlands
Guru
Guru
User avatar
Posts: 366
Joined: Tue Apr 22, 2003 3:23 pm
Location: Sundsvall, Sweden
Contact:
Contact Highlands
Website

  • Quote

Post by Highlands » Mon Mar 26, 2007 2:07 pm

how about adding a guide on doing backup and/or doing a upgrade?
If Windows is the answer, you don't understand the question!
http://counter.li.org/cgi-bin/certificate.cgi/339446
Top
lomom
n00b
n00b
Posts: 3
Joined: Tue Mar 27, 2007 2:07 pm
Location: dfasfda

  • Quote

Post by lomom » Tue Mar 27, 2007 2:12 pm

wow nice !
Top
YuriyRusinov
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jul 21, 2004 2:46 pm
Location: Saint-Petersburg, Russia

  • Quote

Post by YuriyRusinov » Fri May 04, 2007 10:58 am

After updating to postgresql-8.2.4-r1 I try to do

Code: Select all

createdb -U postgres -W test
and receive the same error
createdb: could not connect to database postgres: FATAL: could not open file "global/pg_database"
Thanks for attention in advance.
Best regards,
Yuriy Rusinov.
Top
mudrii
l33t
l33t
Posts: 789
Joined: Thu Jun 26, 2003 12:27 am
Location: Singapore
Contact:
Contact mudrii
Website

  • Quote

Post by mudrii » Fri May 04, 2007 3:03 pm

Big thank for Postgresql documentation I rely needed
www.gentoo.ro
Top
Post Reply

33 posts
  • 1
  • 2
  • Next

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic