|
|
| Book details / order |
| POSTGRESQL 9 ADMINISTRATION COOKBOOK OVER 80 RECIPES TO HELP YOU RUN AN EFFICIENT POSTGRESQL 9.0 DATABASE |
The book gave me the opportunity to look over the shoulder of experienced postgresql users and administrators to see how they go about doing things, and compare to how i've done them. i'm glad to have had the opportunity.
over 80 recipes to help you run an efficient postgresql 9.0 database
administer and maintain a healthy database.
monitor your database ensuring that it performs as quickly as possible.
tips for backup and recovery of your database.
in detail
postgresql is a powerful, open source object-relational database system. an enterprise database, postgresql includes features such as multi-version concurrency control (mvcc), point-in-time recovery, tablespaces, asynchronous replication, nested transactions (savepoints), online/hot backups, a sophisticated query planner/optimizer, and write-ahead logging for fault tolerance. postgresql 9 administration cookbook covers everything a database administrator needs to protect, manage and run a healthy and efficient postgresql 9.0 database.
postgresql 9 administration cookbook describes key aspects of the postgresql open source database system. the book covers everything a sysadmin or dba needs to protect, manage, and run a healthy and efficient postgresql 9 database. this hands-on guide will assist developers working on live databases, supporting web or enterprise software applications using java, python, ruby, or .net from any development framework. it's easy to manage your database when you've got postgresql 9 administration cookbook to hand.
postgresql is fast becoming one of the world's most popular server databases with an enviable reputation for performance, stability, and an enormous range of advanced features. postgresql is one of the oldest open source projects, completely free to use and developed by a very diverse worldwide community. most of all, it just works!
postgresql 9 administration cookbook offers the information you need to manage your live production databases on postgresql. the book contains insights direct from the main author of the postgresql replication and recovery features, and the database architect of the most successful startup using postgresql, skype.
this practical guide gives quick answers to common questions and problems, building on the authors' experience as trainers, users, and core developers of the postgresql database server.
each technical aspect is broken down into short recipes that demonstrate solutions with working code then explain why and how that works. the book is intended to be a desk reference for both new users and technical experts.
the book covers all the latest features in postgresql 9. soon you will be running a smooth database with ease!
a practical guide, this cookbook will ensure you run a smooth postgresql database
what you will learn from this book
how to implement postgresql features for reliability and performance
how to use the latest postgresql 9.0 features
summaries to help dbas with experience of other database systems
advanced technical tips and scripts for experienced users
best practice for planning and designing live databases.
how and when to vacuum your databases.
selecting and implementing robust backup techniques.
concise and clear guidance on replication and high availability.
approach
written in the cookbook style, this book offers learning and techniques through recipes. it contains step-by-step instructions for administrators and developers to manage databases on postgresql. the book is designed in such a way that you can read it chapter by chapter or refer to recipes in no particular order.
who this book is written for
this book is for sysadmins, database administrators, architects, developers, and anyone with an interest in planning for or running live production databases. this book is most suited to those who have some technical experience.
about the author
simon riggs is one of the few major developers and committers on the postgresql database project, and is also cto of 2ndquadrant, providing 24x7 support and services to postgresql users worldwide. simon has worked with enterprise-class database applications for more than 20 years, with prior certifications on oracle, teradata and db2. simon is responsible for much of the database recovery and replication code in postgresql, and designed or wrote many of the latest performance enhancements. he uses his operational experience to contribute to many aspects of both internal design and usability.
hannu krosing is principal consultant at 2ndquadrant and a technical advisor at ambient sound investments. as the original database architect at skype technologies, hannu was responsible for designing the skytools suite of replication and scalability technologies. hannu has more than 12 years experience working with, and contributing to, the postgresql project.
chapter 1: first steps
introduction
introducing postgresql 9
getting postgresql
connecting to postgresql server
enabling access for network/remote users
using graphical administration tools
using psql query and scripting tool
changing your password securely
avoiding hardcoding your password
using a connection service file
troubleshooting a failed connection
chapter 2: exploring the database
introduction
what version is the server?
what is the server uptime?
locate the database server files
locate the database server message log
list databases on this database server?
how many tables in a database?
how much disk space does a database use?
how much disk space does a table use?
which are my biggest tables?
how many rows in a table?
quick estimate of the number of rows in a table
understanding object dependencies
chapter 3: configuration
introduction
reading the fine manual (rtfm)
planning a new database
changing parameters in your programs
what are the current configuration settings?
which parameters are at non-default settings?
updating the parameter file
setting parameters for particular groups of users
basic server configuration checklist
adding an external module to postgresql
running server in power saving mode
chapter 4: server control
introduction
starting the database server manually
stopping the server safely and quickly
stopping the server in an emergency
reloading the server configuration files
restarting the server quickly
preventing new connections
restricting users to just one session each
pushing users off the system
deciding on a design for multi-tenancy
using multiple schemas
giving users their own private database
running multiple servers on one system
set up a connection pool
chapter 5: tables & data
introduction
choosing good names for database objects
handling objects with quoted names
enforcing same name, same column definition
identifying and removing duplicates
preventing duplicate rows
finding a unique key for a set of data
generating test data
randomly sampling data
loading data from a spreadsheet
loading data from flat files
chapter 6: security
introduction
revoking user access to a table
granting user access to a table
creating a new user
temporarily preventing a user from connecting
removing a user without dropping their data
checking all users have a secure password
giving limited superuser powers to specific users
auditing ddl changes
auditing data changes
integrating with ldap
connecting using ssl
encrypting sensitive data
chapter 7: database administration
introduction
writing a script that either all succeeds or all fails
writing a psql script that exits on first error
performing actions on many tables
adding/removing the columns of a table
changing datatype of a column
adding/removing schemas
moving objects between schemas
adding/removing tablespaces
moving objects between tablespaces
accessing objects in other postgresql databases
making views updateable
chapter 8: monitoring and diagnosis
introduction
is the user connected?
what are they running?
are they active or blocked?
who is blocking them?
killing a specific session
resolving an in-doubt prepared transaction
is anybody using a specific table?
when did anybody last use it?
how much disk space is used by temporary data?
why are my queries slowing down?
investigating and reporting a bug
producing a daily summary of logfile errors
chapter 9: regular maintenance
introduction
controlling automatic database maintenance
avoiding auto freezing and page corruptions
avoiding transaction wraparound
removing old prepared transactions
actions for heavy users of temporary tables
identifying and fixing bloated tables and indexes
maintaining indexes
finding the unused indexes
carefully removing unwanted indexes
planning maintenance
chapter 10: performance & concurrency
introduction
finding slow sql statements
collecting regular statistics from pg_stat* views
finding what makes sql slow
reducing the number of rows returned
simplifying complex sql
speeding up queries without rewriting them
why is my query not using an index?
how do i force a query to use an index
using optimistic locking
reporting performance problems
chapter 11: backup & recovery
introduction
understanding and controlling crash recovery
planning backups
hot logical backup of one database
hot logical backup of all databases
hot logical backup of all tables in a tablespace
backup of database object definitions
standalone hot physical database backup
hot physical backup & continuous archiving
recovery of all databases
recovery to a point in time
recovery of a dropped/damaged table
recovery of a dropped/damaged tablespace
recovery of a dropped/damaged database
improving performance of backup/restore
incremental/differential backup and restore
chapter 12: replication & upgrades
introduction
understanding replication concepts
replication best practices
file-based log-shipping replication
setting up streaming log replication
managing log shipping replication
managing hot standby
selective replication using londiste
selective replication using slony 2.0
load balancing with pgpool-ii 3.0
upgrading (minor)
major upgrades in-place
major upgrades online using replication tools
Author : Simon riggs, hannu krosing
Publication : Packt publication
Isbn : 9789350232866
Store book number : 109
NRS 880.00
|
 |
|
|
|
|
|
|
|
| |
|
|