DBA tasks
am 24.07.2006 00:43:15 von Mark Matthews
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
Re: DBA tasks
am 24.07.2006 02:37:53 von Nabil Sawaya
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=B4s 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=B4s 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
Re: DBA tasks
am 24.07.2006 03:00:08 von Michael Fuhr
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/interactive/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/interactive/performance-t ips.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/interactive/release.html
http://www.postgresql.org/docs/8.1/interactive/install-upgra ding.html
http://www.postgresql.org/docs/8.1/interactive/migration.htm l
--
Michael Fuhr
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
Re: DBA tasks
am 26.07.2006 23:44:46 von Thomas SMETS
This is a multi-part message in MIME format.
--------------070002020908040201050706
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
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/interactive/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/interactive/performance- 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/interactive/release.html
>http://www.postgresql.org/docs/8.1/interactive/install-upgr ading.html
>http://www.postgresql.org/docs/8.1/interactive/migration.ht ml
>
>
>
--
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
--------------070002020908040201050706
Content-Type: text/x-vcard; charset=utf-8;
name="tsmets.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="tsmets.vcf"
begin:vcard
fn:Thomas SMETS
n:SMETS;Thomas
email;internet:duvelbier-tsmets@yahoo.com
tel;home:+32 (0)2 742 05 94
tel;cell:+32 (0)497 44 68 12
version:2.1
end:vcard
--------------070002020908040201050706
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
--------------070002020908040201050706--