1 Introduction to PostgreSQL. 2 Documents PostgreSQL 8 for Windows (*) Beginning Databases with PostgreSQL From Novice to Professional, Second Edition.

Slides:



Advertisements
Similar presentations
Module 1: Installing Windows XP Professional
Advertisements

Lesson 22 – Introduction to Linux Systems Administration.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
Server Roles and Features.NET Framework 3.51.NET Framework 4.5 IIS Web Server IIS Default Document IIS Directory Browsing IIS HTTP Errors.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Week 2 - Installation SQL SERVER2000 ENTERPRISE EDITION INSTALLATION.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Linux Operations and Administration
Installing DSpace on Window Bharat M. Chaudhari School of Petroleum Management, PANDIT DEENDAYAL PETROLEUM UNIVERSIRY, GANDHINAGAR
Section 6.1 Explain the development of operating systems Differentiate between operating systems Section 6.2 Demonstrate knowledge of basic GUI components.
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
System Software. BIOS Basic Input Output System A kind of ROM Execute routines Checking RAM, detecting hard disk, floppy disk, CDROM, … etc.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Module 1: Introduction to Microsoft SQL Server 7.0.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Windows XP Professional Windows XP Professional Overview Install and Upgrade Windows XP Pro Customize and Manage Windows XP Pro Troubleshoot Common Windows.
Tutorial 11 Installing, Updating, and Configuring Software
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
INFS 752 Summer Juan Salazar Please right click the symbol in the lower right corner, and then press preview, to hear the presentation for each page.
Remote OMNeT++ v2.0 Introduction What is Remote OMNeT++? Remote environment for OMNeT++ Remote simulation execution Remote data storage.
Hands-On Virtual Computing
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Operating Systems  A collection of programs that  Coordinates computer usage among users  Manages computer resources  Handle Common Tasks.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 5 Windows XP Professional McGraw-Hill.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Section 1: Introducing Group Policy What Is Group Policy? Group Policy Scenarios New Group Policy Features Introduced with Windows Server 2008 and Windows.
Module 7: Fundamentals of Administering Windows Server 2008.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
DIT314 ~ Client Operating System & Administration CHAPTER 5 MANAGING USER ACCOUNTS AND GROUPS Prepared By : Suraya Alias.
Managing Groups, Folders, Files and Security Local Domain local Global Universal Objects Folders Permissions Inheritance Access Control List NTFS Permissions.
Module 4 : Installation Jong S. Bok
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Module 1: Installing Microsoft Windows XP Professional.
A Brief Documentation.  Provides basic information about connection, server, and client.
Windows PostgreSQL installation. Pre-requisites Define a local non-administrative Windows account (eg. postgres) Must install on Console, not through.
PostgreSQL Installation By: Keerthi Nelaturu Previous version by Ahmed Jeddah & Miguel Garzon.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
Microsoft Windows XP Professional MCSE Exam
Database server Campus-Booster ID : ****** Copyright © SUPINFO. All rights reserved MySQL.
11 IMPLEMENTING AND MANAGING SOFTWARE UPDATE SERVICES Chapter 7.
CHAPTER 5 MANAGING USER ACCOUNTS & GROUPS. User Accounts Windows 95, 98 & Me do not need a user account like Windows XP Professional to access computer.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 6 Today’s Windows Windows Vista and Windows 7 McGraw-Hill.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
DHIS2 Live on Windows laptops/desktops (NOT for production servers!!)
By Daniel Grim. What Is Windows NT? IPSEC/Windows Firewall NTFS File System Registry Permissions Managing User Accounts Conclusion Outline.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
1 BCS 4 th Semester. Step 1: Download SQL Server 2005 Express Edition Version Feature SQL Server 2005 Express Edition SP1 SQL Server 2005 Express Edition.
Oracle 10g Administration Oracle Server Introduction Copyright ©2006, Custom Training Institute.
11 SUPPORTING WINDOWS XP FILE AND FOLDER ACCESS Chapter 5.
The GUCS: A Three-Hour Tour. What are GUCS? # “Grand Unified Configuration Settings” – A large set of global and session database settings which live.
Postgres Administration for Sysadmins Spencer Christensen Backcountry.com PostgreSQL Conference East, Philadelphia March 26, 2010.
SAP Business One 9.0 integration for SAP NetWeaver Installation and Technical Configuration 2013 March.
DIT314 ~ Client Operating System & Administration
Guide to Linux Installation and Administration, 2e
The Data Geekery SQL Masterclass Setup Instructions
Download dumps - Microsoft Real Exam Questions Dumps4download
8 6 MySQL Special Topics A Guide to MySQL.
Presentation transcript:

1 Introduction to PostgreSQL

2 Documents PostgreSQL 8 for Windows (*) Beginning Databases with PostgreSQL From Novice to Professional, Second Edition

3 Outline 1. Database environments 2. Comparing PostgreSQL 3. Installing PostgreSQL on Windows 4. The PostgreSQL Files and Programs

4 1. Database environments

5 A Simple Database engine

6 A shared Microsoft Access environment

7 A multiuser PostgreSQL environment

8 2. Comparing PostgreSQL

9 PostgreSQL Versus Commercial DBMS Products PostGreSQL: - free open source - No limitations: CPU, Memory, Database Free Commercial Database Limitations

10 3. Installing PostgreSQL on Windows

11 Installing PostgreSQL on Windows (1/2) Windows Workstations – Windows 2000 Workstation – Windows XP Home Edition – Windows XP Professional Edition – Windows Vista – Windows 7 … Windows Servers – Windows 2000 Server – Windows 2000 Advanced Server – Windows 2003 Standard Server – Windows 2003 Enterprise Server …

12 Installing PostgreSQL on Windows (2/2) Windows Workstations: – NTFS format Windows Servers – File system formatting: NOT be a problem  should NTFS for sercurity purposes – The CPUspeed: NOT too picky – The amount of RAM installed: need – The type of hard disk drives used EIDE (ATA, SATA) SCSI (SCSI, SAS) – RAID

13 EIDE, SCSI

14 Download Lastest version 9.2.4

15 Install and test Install Stop/start server (run as administrator) Connect to server from pgAdminIII

16 Notes: Uninstall postgreSQL Uninstall Remove data directory C:\Program Files\PostgreSQL Delete user postgres net user postgres /delete

17 4. The PostgreSQL Files and Programs

18 The PostgreSQL Files Default: C:\Program Files\PostgreSQL\8.x

19 Database cluster Directory Default: C:\Program Files\PostgreSQL\8.x\data

20 pg_log directory for Administrators Each started time, a new log file: postgresl-year-month- day-time.log Each row: a timestamp + the event

21 PostgreSQL Log Message Levels

22 Configuration Files How PostgreSQL behaves is controlled by three separate configuration files – postgresql.conf (C:\Program Files\PostgreSQL\8.4\data) – pg_hba.conf – pg_ident.conf Text files: – can be changed at any time – will not take effect until either the system is restarted or reloaded – Each entry in the configuration files is on a separate line – #: comment

23 Changing configuration files Use text editor: notepad++ Default values = standard values If a configuration line is commented out, PostgreSQL uses the default value for that entry Changing the default value = removing the comment symbol from the line, reloading or restarting system Reverting to the default value for an entry = puting the comment symbol back, stopping and restarting the PostgreSQL system (NOT reloading)

24 The postgresql.conf File Format: featurename = value Example: port = 5432 The main configuration file – File Locations Section – Connections and Authentication Section – Resource Usage Section – Write Ahead Log Section – Query Tuning Section – Error Reporting and Logging Section – Runtime Statistics Section – Autovacuum Parameters Section – Client Connection Defaults Section – Lock Management Section – Version/Platform Compatibility Section – Customized Options Section

25 The pg_hba.conf File Configure: – Which network hosts are allowed to connect to PostgreSQL – Which PostgreSQL usernames can be used to connect from the network – What authentication method users must use to log into the system – Which PostgreSQL databases an authenticated client can connect to Format: connection-type database user network-address login-method [options ] Example: host all all /32 md5

26 The pg_hba.conf File Format: connection-type database user network-address login-method [options ] Examples: – host all all /32 md5 : allows any client on the localhost to connect as any user to any database using md5 authentication – host all postgres /24 md5 : allows the postgres user account to connect any database from the local subnetwork ( to )

27 The pg_ident.conf File Provides a method for you to map remote client user accounts to PostgreSQL user accounts Format: map-name ident-name PostgreSQL-user-account Example: – host all all /32 ident testhost: All users from the host will have access to all PostgreSQL databases. User accounts from this host are mapped to PostgreSQL user accounts using the testhost ident mapping. – testhost rich richard – testhost mike michael – testhost dan daniel

28 Programs Most Unix administrators live and die by simple command-line programs Windows administrators will want to use the graphical tools available in the pgAdmin III application

29 PostgreSQL Server Commands Location: C:\Program Files\PostgreSQL\9.2\bin postgres: the PostgreSQL database server – can be used to query, but not easy  psql – The utility command pg_ctl can be used to start and shut down the postgres server safely and comfortablypg_ctl postmaster: is a deprecated alias of postgres.

30 PostgreSQL Server Commands pg_ctl: control the PostgreSQL system (stop, start, or reload the configuration files) – using the -D commandline option – Example: C:\>pg_ctl stop -D "c:\ProgramFiles\PostgreSQL\9.2\data” (document: file:///C:/Program%20Files/PostgreSQL/9.2/doc/postgre sql/html/app-pg-ctl.html)

31 PostgreSQL Client Applications psql: a command-line interface to the PostgreSQL system pg_config: see the current configuration values used to compile and install the PostgreSQL package pg_dump: dump (or back up) the contents of a database on the PostgreSQL system to a file – Script: SQL files – Archived: compressed binary files (using pg_restore to restore)

32 PostgreSQL Client Applications pg_dumpall: similar to the pg_dump program, except it dumps all of the databases to a file pg_restore pgAdmin III: a fancy graphical interface for administering a PostgreSQL system – Open Source:

33