Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330927 - [New] Documentation for PostgreSQL
Summary: [New] Documentation for PostgreSQL
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: New Documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
: 358267 (view as bug list)
Depends on:
Blocks: 262165 272969 300236
  Show dependency tree
 
Reported: 2010-08-02 22:13 UTC by Aaron W. Swenson
Modified: 2011-08-13 11:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
PostgreSQL Doc (postgresql.xml,24.82 KB, application/xml)
2010-08-02 22:15 UTC, Aaron W. Swenson
Details
Reviewed/updated PostgreSQL guide (postgresql.xml,24.95 KB, text/plain)
2011-02-27 14:38 UTC, Sven Vermeulen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron W. Swenson gentoo-dev 2010-08-02 22:13:18 UTC
This new documentation for PostgreSQL obsoletes the current documentation on g.o. It is a straightforward installation guide that touches on the Gentoo eccentricities of the new ebuilds. (dev-db/postgresql-{docs,base,server})

It avoids making comparisons between MySQL and PostgreSQL, it does not recommend that users set a password for the 'postgres' system account as that actually poses a security risk, and it leaves guiding users on different database operations -- such as creating a database, roles and tables -- to the official documentation to explain as there are too many details to simply gloss over and the official documentation has a very good tutorial.
Comment 1 Aaron W. Swenson gentoo-dev 2010-08-02 22:15:44 UTC
Created attachment 241161 [details]
PostgreSQL Doc
Comment 2 Sven Vermeulen 2011-02-27 14:38:41 UTC
Created attachment 264045 [details]
Reviewed/updated PostgreSQL guide

Updated the guide, mainly style and some writing (no real content change though).
Comment 3 Aaron W. Swenson gentoo-dev 2011-03-01 11:56:03 UTC
I've got to update this guide as there will be some changes that need to be reflected in the doc.
Comment 4 nm (RETIRED) gentoo-dev 2011-03-10 19:06:47 UTC
*** Bug 358267 has been marked as a duplicate of this bug. ***
Comment 5 James Horton 2011-03-10 20:46:49 UTC
BUG 358267 IS NOT a duplicate.
The bug, 330927, is about updating
documentation for Version 8.4 of PG.

PG 9 is quite different from PG8, You'll
most likely need 2 differnent version of the
document or a split system where you can follow
instructions on the different versions 8 or 9.

I have not posted more about specific suggestion,
because right now pg( says in installs) OK.

Then the instructions say to run:
emerge postgresql-server --config

that returns this prose
"* Initializing the database ...
initdb: file "/usr/share/postgresql-8.4/postgres.bki" does not exist
This might mean you have a corrupted installation or identified
the wrong directory with the invocation option -L. "
* You can use the '//etc/init.d/postgresql-9.0' script to run PostgreSQL
* instead of 'pg_ctl'.

OK so '/etc/init.d/postgresql-9.0  start'
returns:
postgres cannot access the server configuration file "/var/lib/postgresql/9.0/data/postgresql.conf": No such file or directory

I think some basic (current) documentation on PG9 separate from
PG8 is warranted, since they are slotted.....

hmmmmmmmmmmm?
Comment 6 Aaron W. Swenson gentoo-dev 2011-03-10 21:13:01 UTC
(In reply to comment #5)

No, separate documentation is not required. The details for installing, running and migrating PostgreSQL on Gentoo are consistent between versions with the exception that starting with 9.0 a new tool to make migrations even faster and easier, which can be covered in its own subsection of the documentation.

The instructions given by the ebuild to initialize the database is most certainly not:
    emerge postgresql-server --config

As for the error regarding '/usr/share/postgresql-8.4/postgres.bki', that is a separate bug.
Comment 7 Aaron W. Swenson gentoo-dev 2011-03-29 01:36:13 UTC
I've merged some of the changes that Sven had attached to this bug.

You can review the resulting doc at:
http://git.overlays.gentoo.org/gitweb/?p=proj/pgsql-patches.git;a=commit;h=f8317be1c97202f4edecef8f21c074cd50843cf8

I still need to go through it a bit more to cover some of the additional changes made in the ebuilds and I should probably mention at some point that 'eselect postgresql' is used to define the default slot to use.
Comment 8 Aaron W. Swenson gentoo-dev 2011-07-23 16:39:54 UTC
http://git.overlays.gentoo.org/gitweb/?p=proj/pgsql-patches.git;a=shortlog;h=refs/heads/documentation

Updated. This revision should be ready to be published.
Comment 9 Sven Vermeulen (RETIRED) gentoo-dev 2011-08-13 11:59:17 UTC
Thanks, document committed in CVS.