Database Administration with PostgreSQL Introduction This is a 3 day intensive course in skills and methods for PostgreSQL. Course Details Duration: 3 days Starting time: 9.00 am Finishing time: 4.30 pm Lunch and refreshments are provided. Booking guidelines Contact our Learning Consultants on 1300 86 87246 and we will assist you with your booking. 1300 86 87246 1300 TO TRAIN For more information about any of our training courses, contact our Learning Consultants
1. Introduction to PostgreSQL Programming with Data Reviewing the Sample Database Constant Data Flat Files for Data Storage Repeating Groups and Other Problems 3. Getting Started with PostgreSQL Installing PostgreSQL on Linux and UNIX Systems What is a Database Management System? Database Models Query Lanaguages Database Management System Responsibilities What is PostgreSQL? A Short History of PostgreSQL The PostgreSQL Architecture Data Access with PostgreSQL What is Open Source? Resources 2. Relational Database Principles Limitations of Spreadsheets Storing Data in a Database Choosing Columns Choosing a Data Type for Each Column Identifying Rows Uniquely Accessing Data in a Database Accessing Data Across a Network Handling Multiuser Access Slicing and Dicing Data Adding Information Using Multiple Tables Relating a Table with a Join Operation Designing Tables Understanding Some Basic Rules of Thumb Creating a Simple Database Design Extending Beyond Two Tables Completing the Initial Design Basic Data Types Dealing with the Unknown: NULLs Installing PostgreSQL from Linux Binaries Anatomy of a PostgreSQL from the Source Code Setting UP PostgreSQL on Linux and UNIX Installing PostgreSQL on Windows Using the Windows Installer Configuring Client Access Creating the Sample Database Creating User Records Creating the Database Creating the Tables Removing the Tables Populating the Tables 4. Accessing Your Data Using psql Starting Up on Linux Systems Starting Up on Windows Systems Resolving Startup Problems Using Some Basic psql Commands Using Simple SELECT Statements Overriding Column Names Controlling the Order of Rows Suppressing Duplicates Performing Calculations Choosing the Rows Using More Complex Conditions Pattern Matching Limiting the Results Checking for NULL Checking Dates and Times Setting the Time and Date Style
Using Date and Time Functions Working with Multiple Tables Relating Two Tables Aliasing Tables Names Relating Three or More Tables The SQL92 SELECT Syntax 5. PostgreSQL Command-Line and Graphical Tools psql Starting psql Issuing Commands in psql Working with the Command History Scripting psql Examining the Database psql Command-Line Quick Reference psql Internal Commands Quick Reference ODBC Setup Installing the ODBC Driver Creating a Data Source pgadminiii Installing pgadmin III Using pgadmin III phppgadmin Installing phppgadmin Using phpadmin Rekall Connecting to a Database Creating Forms Building Queries Microsoft Access Using Linked Tables Entering Data and Creating Reports Microsoft Excel Resources for PostgreSQL Tools 6. Data Interfacing Adding Data to the Database Using Basic INSERT Statements Using Safer INSERT Statements Inserting Data into Serial Columns Inserting NULL Values Using the \copy Command Loading Data Directly from Another Application Updating Data in the Database Using the UPDATE Statement Updating from Another Table Deleting Data from the Database Using the DELETE Statement Using the TRUNCATE Statement 7. Advanced Data Selection Aggregate Functions The Count Function The Min Function The Max Function The Sum Function The Avg Function The Subquery Subqueries That Return Multiple Rows Correlated Subqueries Existence Subqueries The UNION Join Self Joins Outer Joins 8. Data Definition and Manipulation Data Types The Boolean Data Type Character Data Types. Number Data Types Temporal Data Types Special Data Types Arrays Data Manipulation Converting Between Data Types Functions for Data Manipulation
Magic Variables. The OID Column Table Management Creating Tables Using Column Constraints Using Table Constraints Altering Table Structures Deleting Tables Using Temporary Tables Views Creating Views Deleting and Replacing Views Foreign Key Constraints Foreign Key As a Column Constraint Foreign Key As a Table Constraint Foreign Key Constraint Options 9. Transactions and Locking What Are Transactions? Grouping Data Changes into Logical Units Concurrent Multiuser Access to Data ACID Rules Transaction Logs Transactions with a Single User Transactions Involving Multiple Tables Transactions and Savepoints Transaction Limitations Transactions with Multiple Users Arithmetic Operators Comparison and String Operators Other Operators. Built-in Functions Procedural Languages Getting Started with PL/pgSQL Function Overloading Listing Functions Deleting Functions Quoting Anatomy of a Stored Procedure Function Arguments Comments Declarations Assignments Execution Control Structures Dynamic Queries SQL Functions Triggers Defining a Trigger Procedure Creating Triggers Why Use Stored Procedures and Triggers? 11. PostgreSQL Administration System Configuration The bin Directory The data Directory Other PostgreSQL Subdirectories Implementing Isolation Changing the Isolation level Using Explicit and Implicit Transactions. Database Initialization Server Control Locking Avoiding Deadlocks Explicit Locking 10. Functions, Stored Procedures, and Triggers Operators Operator Precedence and Associativity Running Processes on Linux and UNIX Starting and Stopping the Server on Linux and UNIX PostgreSQL Internal Configuration Configuration Methods User Configuration Group Configuration Tablespace Management Database Management Schema Management
Resources for Database Design Database Backup and Recovery Creating a Backup Restoring from a Backup Backing Up and Restoring from pgadmin III Database Performance Monitoring Behavior Using VACUUM Creating Indexes 12. Database Design What Is a Good Database Design? Understanding the Problem Taking Design Aspects into Account Stages in Database Design Gathering Information Developing a Logical Design Determining Relationships and Cardinality Converting to a Physical Model Establishing Primary Keys Establishing Foreign Keys Establishing Data Types Completing the Table Definitions Implementing Business Rules Checking the Design Normal Forms First Normal Form Second Normal Form Third Normal Form Common Patterns Many-to-Many Hierarchy Recursive Relationships