PostgreSQL: Up and Running: A Practical Guide to the Advanced Open Source Database

Front Cover
"O'Reilly Media, Inc.", Oct 10, 2017 - Computers - 314 pages

Thinking of migrating to PostgreSQL? This clear, fast-paced introduction helps you understand and use this open source database system. Not only will you learn about the enterprise class features in versions 9.5 to 10, youâ??ll also discover that PostgeSQL is more than a database systemâ??itâ??s an impressive application platform as well.

With examples throughout, this book shows you how to achieve tasks that are difficult or impossible in other databases. This third edition covers new features, such as ANSI-SQL constructs found only in proprietary databases until now: foreign data wrapper (FDW) enhancements; new full text functions and operator syntax introduced in version 9.6; XML constructs new in version 10; query parallelization features introduced in 9.6 and enhanced in 10; built-in logical replication introduced in Version 10.e.

If youâ??re a current PostgreSQL user, youâ??ll pick up gems you may have missed before.

  • Learn basic administration tasks such as role management, database creation, backup, and restore
  • Apply the psql command-line utility and the pgAdmin graphical administration tool
  • Explore PostgreSQL tables, constraints, and indexes
  • Learn powerful SQL constructs not generally found in other databases
  • Use several different languages to write database functions
  • Tune your queries to run as fast as your hardware will allow
  • Query external and variegated data sources with foreign data wrappers
  • Learn how to use built-in replication to replicate data
 

Contents

Chapter 1 The Basics
1
Chapter 2 Database Administration
21
Chapter 3 psql
57
Chapter 4 Using pgAdmin
73
Chapter 5 Data Types
97
Chapter 6 Tables Constraints and Indexes
145
The PostgreSQL Way
163
Chapter 8 Writing Functions
197
Chapter 9 Query Performance Tuning
219
Chapter 10 Replication and External Data
243
Appendix A Installing PostgreSQL
263
Appendix B PostgreSQL Packaged CommandLine Tools
267
Index
277
About the Authors
291
Copyright

Other editions - View all

Common terms and phrases

About the author (2017)

Regina Obe is a co-principal of Paragon Corporation, a database consulting company based in Boston. She has over 15 years of professional experience in various programming languages and database systems, with special focus on spatial databases. She is a member of the PostGIS steering committee and the PostGIS core development team. Regina holds a BS degree in mechanical engineering from the Massachusetts Institute of Technology. She co-authored PostGIS in Action. Leo Hsu is a co-principal of Paragon Corporation, a database consulting company based in Boston. He has over 15 years of professional experience developing and thinking about databases for organizations large and small. Leo holds an MS degree in engineering of economic systems from Stanford University and BS degrees in mechanical engineering and economics from the Massachusetts Institute of Technology. He co-authored PostGIS in Action.

Bibliographic information