• Complain

Regina Obe - PostgreSQL: Up and Running

Here you can read online Regina Obe - PostgreSQL: Up and Running full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2012, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Regina Obe PostgreSQL: Up and Running
  • Book:
    PostgreSQL: Up and Running
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2012
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

PostgreSQL: Up and Running: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "PostgreSQL: Up and Running" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

If youre thinking about migrating to the PostgreSQL open source database system, this guide provides a concise overview to help you quickly understand and use PostgreSQLs unique features. Not only will you learn about the enterprise class features in the 9.2 release, youll also discover that PostgeSQL is more than just a database system--its also an impressive application platform.
With numerous examples throughout this book, youll learn how to achieve tasks that are difficult or impossible in other databases. If youre an existing PostgreSQL user, youll pick up gems you may have missed along the way.

Regina Obe: author's other books


Who wrote PostgreSQL: Up and Running? Find out the surname, the name of the author of the book and a list of all author's works by series.

PostgreSQL: Up and Running — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "PostgreSQL: Up and Running" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
PostgreSQL: Up and Running
Regina Obe
Leo Hsu
Published by OReilly Media

Beijing Cambridge Farnham Kln Sebastopol Tokyo Preface PostgreSQL is an open - photo 1

Beijing Cambridge Farnham Kln Sebastopol Tokyo

Preface

PostgreSQL is an open source relational database management system that began as a University of California, Berkeley project. It was originally under the BSD license, but is now called the PostgreSQL License (TPL). For all intents and purposes, its BSD licensed. It has a long history, almost dating back to the beginning of relational databases.

It has enterprise class features such as SQL windowing functions, the ability to create aggregate functions and also utilize them in window constructs, common table and recursive common table expressions, and streaming replication. These features are rarely found in other open source database platforms, but commonly found in newer versions of the proprietary databases such as Oracle, SQL Server, and IBM DB2. What sets it apart from other databases, including the proprietary ones we just mentioned, is the ease with which you can extend it without changing the underlying baseand in many cases, without any code compilation. Not only does it have advanced features, but it performs them quickly. It can outperform many other databases, including proprietary ones for many types of database workloads.

In this book, well expose you to the advanced ANSI-SQL features that PostgreSQL offers. and the unique features PostgreSQL has that you wont find in other databases. If youre an existing PostgreSQL user or have some familiarity with PostgreSQL, we hope to show you some gems you may have missed along the way; or features found in newer PostgreSQL versions that are not in the version youre using. If you have used another relational database and are new to PostgreSQL, well show you some parallels with how PostgreSQL handles tasks compared to other common databases, and demonstrate feats you can achieve with PostgreSQL that are difficult or impossible to do in other databases. If youre completely new to databases, youll still learn a lot about what PostgreSQL has to offer and how to use it; however, we wont try to teach you SQL or relational theory. You should read other books on these topics to take the greatest advantage of what this book has to offer.

This book focuses on PostgreSQL versions 9.0 to 9.2, but we will cover some unique and advanced features that are also present in prior versions of PostgreSQL.

What Makes PostgreSQL Special and Why Use It?

PostgreSQL is special because its not just a database: its also an application platformand an impressive one at that.

PostgreSQL allows you to write stored procedures and functions in several programming languages, and the architecture allows you the flexibility to support more languages. Example languages that you can write stored functions in are SQL (built-in), PL/pgSQL (built-in), PL/Perl, PL/Python, PL/Java, and PL/R, to name a few, most of which are packaged with many distributions. This support for a wide variety of languages allows you to solve problems best addressed with a domain or more procedural language; for example, using R statistics functions and R succinct domain idioms to solve statistics problems; calling a web service via Python; or writing map reduce constructs and then using these functions within an SQL statement.

You can even write aggregate functions in any of these languages that makes the combination more powerful than you can achieve in any one, straight language environment. In addition to these languages, you can write functions in C and make them callable, just like any other stored function. You can have functions written in several different languages participating in one query. You can even define aggregate functions with nothing but SQL. Unlike MySQL and SQL Server, no compilation is required to build an aggregate function in PostgreSQL. So, in short, you can use the right tool for the job even if each sub-part of a job requires a different tool; you can use plain SQL in areas where most other databases wont let you. You can create fairly sophisticated functions without having to compile anything.

The custom type support of PostgreSQL is sophisticated and very easy to use, rivaling and often outperforming most other relational databases. The closest competitor in terms of custom type support is Oracle. You can define new data types in PostgreSQL that can then be used as a table column. Every data type has a companion array type so that you can store an array of a type in a data column or use it in an SQL statement. In addition to the ability of defining new types, you can also define operators, functions, and index bindings to work with these. Many third-party extensions for PostgreSQL take advantage of these fairly unique features to achieve performance speeds, provide domain specific constructs to allow shorter and more maintainable code, and accomplish tasks you can only fantasize about in other databases.

If building your own types and functions is not your thing, you have a wide variety of extensions to choose from, many of which are packaged with PostgreSQL distros. PostgreSQL 9.1 introduced a new SQL construct, CREATE EXTENSION, which allows you to install the many available extensions with a single SQL statement for each in a specific database. With CREATE EXTENSION, you can install in your database any of the aforementioned PL languages and popular types with their companion functions and operators, like hstore, ltree, postgis, and countless others. For example, to install the popular PostgreSQL key-value store type and its companion functions and operators, you would type:

CREATE EXTENSION hstore;

In addition, there is an SQL command you can runsect_extensionsto see the list of available and installed extensions.

Many of the extensions we mentioned, and perhaps even the languages we discussed, may seem like arbitrary terms to you. You may recognize them and think, Meh, Ive seen Python, and Ive seen Perl... So what? As we delve further, we hope you experience the same WOW moments we have come to appreciate with our many years of using PostgreSQL. Each update treats us to new features, eases usability, brings improvements in speed, and pushes the envelope of what is possible with a database. In the end, you will wonder why you ever used any other relational database, when PostgreSQL does everything you could hope forand does it for free. No more reading the licensing cost fine print of those other databases to figure out how many dollars you need to spend if you have 8 cores on your server and you need X,Y, Z functionality, and how much it will cost you when you get 16 cores.

On top of this, PostgreSQL works fairly consistently across all supported platforms. So if youre developing an app you need to resell to customers who are running Linux, Mac OS X, or Windows, you have no need to worry, because it will work on all of them. There are binaries available for all if youre not in the mood to compile your own.

Why Not PostgreSQL?

PostgreSQL was designed from the ground up to be a server-side database. Many people do use it on the desktop similarly to how they use SQL Server Express or Oracle Express, but just like those it cares about security management and doesnt leave this up to the application connecting to it. As such, its not ideal as an embeddable database, like SQLite or Firebird.

Sadly, many shared-hosts dont have it pre-installed, or have a fairly antiquated version of it. So, if youre using shared-hosting, youre probably better off with MySQL. This may change in the future. Keep in mind that virtual, dedicated hosting and cloud server hosting is reasonably affordable and getting more competitively priced as more ISPs are beginning to provide them. The cost is not that much more expensive than shared hosting, and you can install any software you want on them. Because of these options, these are more suitable for PostgreSQL.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «PostgreSQL: Up and Running»

Look at similar books to PostgreSQL: Up and Running. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «PostgreSQL: Up and Running»

Discussion, reviews of the book PostgreSQL: Up and Running and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.