PostgreSQLPostgreSQL is a multi-user relational database. The community support for PostgreSQL is very strong; in fact, PostgreSQL recently distinguished itself by powering the Internet .org namespace.[2] Getting into PostgreSQL is beyond the scope of this chapter, but for a good book, see:[2] See http://cw.idg.com.au/idg2.nsf/All/2ADD84E6EBCEADE9CA256CB30075FA01!OpenDocument.PostgreSQL: Introduction and Concepts by Bruce Momjian Addison-WesleyPostgreSQL does run on both Linux and Microsoft Windows but does not have a native port for the Windows platform (like the MySQL database does). In this chapter, our example will be designed to run on both platforms. InstallationSince most mainline Linux distributions install PostgreSQL by default, there is not much to installing the database except maybe for applying the latest upgrade. Thus, this section of the chapter will mainly focus on installing PostgreSQL on Windows. PostgreSQL requires many features of the Unix platform that do not exist on the Windows OS.[3] Therefore, PostgreSQL requires the use of a "Unix-Like" environment running within Windows.[3] A native Windows version of PostgreSQL (not requiring cygwin) is due out this summer. See Interview with the PostgreSQL Team, by Eugenia Loli-Queru - Posted on 2003-04-21 17:26:22 (http://www.osnews.com/story.php?news_id=3341&page=1). CygwinCygwin (http://www.cygwin.com) is an Open Source project to bring many of the Unix-based operating system features and tools to the Windows platform. Figure 10-1 shows the installation utility for Cygwin. Figure 10-1. Installing PostgreSQL with Cygwin.![]() Figure 10-2. Running PostgreSQL in Cygwin.[View full size image] ![]() Administration ToolsLike most other Unix-based programs, PostgreSQL has a number of command-line tools. However, to speed up development, there are a number of other Open Source projects that help with the administration and development of PostgreSQL databases. Conversion UtilitiesPostgreSQL provides conversion tools to convert from other database engines. Some of the supported conversions are:MS Access http://gborg.postgresql.org/project/access2pgconverter/projdisplay.phpMySQL http://gborg.postgresql.org/project/mysql2psql/projdisplay.phpThese projects can be helpful in converting existing database projects over to PostgreSQL. Graphical ToolsPgAdmin III (http://pgadmin.postgresql.org), shown in Figure 10-3, is a very intuitive and time-saving tool. This tool allows you to easily administer and graphically design a database. You can create databases, tables, and stored procedures and perform many other operations. This product will be very familiar to anyone who has used Microsoft SQL Server Enterprise Manager and Query Analyzer. Figure 10-3. PgAdmin III.[View full size image] ![]() Figure 10-4. Editing the PostgreSQL Configuration File.[View full size image] ![]() |