Unix Technical Forum

DBA tasks

This is a discussion on DBA tasks within the pgsql Admins forums, part of the PostgreSQL category; --> Hello, Can anyone recommend good reference text, web or other, for general PostgreSQL DBA tasks. Stuff like: * Things ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:25 AM
Mark Matthews
 
Posts: n/a
Default DBA tasks

Hello,

Can anyone recommend good reference text, web or other, for general
PostgreSQL DBA tasks.

Stuff like:
* Things to do to clean up periodically (CLUSTER, VACUUM FULL, etc)
* How to analyse queries to optimise data retrieval (Use of EXPLAIN,
etc)
* etc ...

We are running Debian stable (sarge) and therefore 7.4. Moving to 8.1
soon (hopefully)

I am a developer who has adopted the role of DBA.

Thanks

-------------------------------------------------
Mark Matthews
Object Craft Pty Ltd
http://www.object-craft.com.au


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:25 AM
Nabil Sawaya
 
Posts: n/a
Default Re: DBA tasks

Hello friend,

Well, I have not a tutorial at hand now, but i can say to you some
tasks i remember, and these can make you spent a long time learning
about how to do.

I think that the tasks essentially you must to know are:

- Install database
- Configure the two most important files (pg_hba.conf and postgresql.conf)
- Install an know how to use psql
- Install an IDE Tool - originally, PgAdmin
- You can get a plus using PgAgent, to do jobs, etc...
- Create a Database, set encoding char, etc...
- Install a Procedural Language as PL/pgSQL
- Create Tablespaces (8.0 or higher) (Itīs more important know why use
tablespaces before create them)
- Database Roles and Privileges
- Managing Databases
- Client Authentication
- Backup and restore
- Monitoring Database activity
- Monitoring disk usage

three tips:

1) do not use vacuum all the time. schedule daily and weekly it.
2) learn about re-index
3) sometimes is better make a dump than vacuum and re-index.

thatīs all

if you wish more, send another questions to my e-mail

Hugs

Nabil Sawaya

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 07:25 AM
Michael Fuhr
 
Posts: n/a
Default Re: DBA tasks

On Mon, Jul 24, 2006 at 08:43:15AM +1000, Mark Matthews wrote:
> Can anyone recommend good reference text, web or other, for general
> PostgreSQL DBA tasks.


The PostgreSQL documentation is a good place to start. See "Server
Administration," especially the chapters concerning routine maintenance,
backup and restore, and monitoring.

http://www.postgresql.org/docs/8.1/i...ive/admin.html

(Adjust the link to match the version you're running.)

> Stuff like:
> * Things to do to clean up periodically (CLUSTER, VACUUM FULL, etc)


See above.

> * How to analyse queries to optimise data retrieval (Use of EXPLAIN,
> etc)


See "Performance Tips" in the documentation and the tuning documents
at powerpostgresql.com. You could also peruse the list archives,
especially pgsql-performance, to see how real performance problems
have been investigated and addressed. For example, search for
threads that contain the words "EXPLAIN ANALYZE".

http://www.postgresql.org/docs/8.1/i...ance-tips.html
http://www.powerpostgresql.com/Docs/
http://archives.postgresql.org/pgsql-performance/

The General Bits newsletter has interesting articles; see the
Archives and General Tidbits links.

http://www.varlena.com/varlena/GeneralBits/

> We are running Debian stable (sarge) and therefore 7.4. Moving to 8.1
> soon (hopefully)


Before upgrading read the Release Notes for all newer versions to
see what changes you'll be getting. See also "If You Are Upgrading"
in the Installation Instructions and read the Backup and Restore
chapter, which has a "Migration Between Releases" section.

http://www.postgresql.org/docs/8.1/i...e/release.html
http://www.postgresql.org/docs/8.1/i...upgrading.html
http://www.postgresql.org/docs/8.1/i...migration.html

--
Michael Fuhr

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 07:26 AM
Thomas SMETS
 
Posts: n/a
Default Re: DBA tasks



Fine
but in the long run, we'd need something like Donald Burleson's web site
/ books with extended internals explainaintions, no ... ?

\T,



Michael Fuhr wrote:

>On Mon, Jul 24, 2006 at 08:43:15AM +1000, Mark Matthews wrote:
>
>
>>Can anyone recommend good reference text, web or other, for general
>>PostgreSQL DBA tasks.
>>
>>

>
>The PostgreSQL documentation is a good place to start. See "Server
>Administration," especially the chapters concerning routine maintenance,
>backup and restore, and monitoring.
>
>http://www.postgresql.org/docs/8.1/i...ive/admin.html
>
>(Adjust the link to match the version you're running.)
>
>
>
>>Stuff like:
>>* Things to do to clean up periodically (CLUSTER, VACUUM FULL, etc)
>>
>>

>
>See above.
>
>
>
>>* How to analyse queries to optimise data retrieval (Use of EXPLAIN,
>>etc)
>>
>>

>
>See "Performance Tips" in the documentation and the tuning documents
>at powerpostgresql.com. You could also peruse the list archives,
>especially pgsql-performance, to see how real performance problems
>have been investigated and addressed. For example, search for
>threads that contain the words "EXPLAIN ANALYZE".
>
>http://www.postgresql.org/docs/8.1/i...ance-tips.html
>http://www.powerpostgresql.com/Docs/
>http://archives.postgresql.org/pgsql-performance/
>
>The General Bits newsletter has interesting articles; see the
>Archives and General Tidbits links.
>
>http://www.varlena.com/varlena/GeneralBits/
>
>
>
>>We are running Debian stable (sarge) and therefore 7.4. Moving to 8.1
>>soon (hopefully)
>>
>>

>
>Before upgrading read the Release Notes for all newer versions to
>see what changes you'll be getting. See also "If You Are Upgrading"
>in the Installation Instructions and read the Backup and Restore
>chapter, which has a "Migration Between Releases" section.
>
>http://www.postgresql.org/docs/8.1/i...e/release.html
>http://www.postgresql.org/docs/8.1/i...upgrading.html
>http://www.postgresql.org/docs/8.1/i...migration.html
>
>
>



--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Brussels

T. : +32 (0)2 742 05 94
M. : +32 (0)497 44 68 12
@ : duvelbier-tsmets@yahoo.com



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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com