PostgreSQL 14 Administration Cookbook
eBook - ePub

PostgreSQL 14 Administration Cookbook

Simon Riggs, Gianni Ciolli

  1. 608 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

PostgreSQL 14 Administration Cookbook

Simon Riggs, Gianni Ciolli

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Administer, monitor, and replicate your PostgreSQL 14 database for efficient database management and maintenanceKey Features• Troubleshoot and tackle any administration and management problems in PostgreSQL 14• Find expert techniques for monitoring, fine-tuning, and securing your database• Adopt efficient replication for high availability with PostgreSQL 14Book DescriptionPostgreSQL is a powerful, open-source database management system with an enviable reputation for high performance and stability. With many new features in its arsenal, PostgreSQL 14 allows you to scale up your PostgreSQL infrastructure. With this book, you'll take a step-by-step, recipe-based approach to effective PostgreSQL administration.This book will get you up and running with all the latest features of PostgreSQL 14 while helping you explore the entire database ecosystem. You'll learn how to tackle a variety of problems and pain points you may face as a database administrator such as creating tables, managing views, improving performance, and securing your database. As you make progress, the book will draw attention to important topics such as monitoring roles, validating backups, regular maintenance, and recovery of your PostgreSQL 14 database. This will help you understand roles, ensuring high availability, concurrency, and replication. Along with updated recipes, this book touches upon important areas like using generated columns, TOAST compression, PostgreSQL on the cloud, and much more.By the end of this PostgreSQL book, you'll have gained the knowledge you need to manage your PostgreSQL 14 database efficiently, both in the cloud and on-premise.What you will learn• Plan, manage, and maintain PostgreSQL databases in production• Work with the newly introduced features of PostgreSQL 14• Use pgAdmin or OmniDB to perform database administrator (DBA) tasks• Use psql to write accurate and repeatable scripts• Understand how to tackle real-world data issues with the help of examples• Select and implement robust backup and recovery techniques in PostgreSQL 14• Deploy best practices for planning and designing live databasesWho this book is forThis Postgres 14 book is for database administrators, data architects, database developers, and anyone with an interest in planning and running live production databases using PostgreSQL 14. Those looking for hands-on solutions to any problem associated with PostgreSQL 14 administration will also find this book useful. Some experience with handling PostgreSQL databases will help you to make the most out of this book, however, it is a useful resource even if you are just beginning your Postgres journey.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
PostgreSQL 14 Administration Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a PostgreSQL 14 Administration Cookbook di Simon Riggs, Gianni Ciolli in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Computer Science General. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2022
ISBN
9781803240787

Chapter 1: First Steps

PostgreSQL is a feature-rich, general-purpose database-management system. It's a complex piece of software, but every journey begins with the first step.
We'll start with your first connection. Many people fall at the first hurdle, so we'll try not to skip past that too swiftly. We'll quickly move on to enabling remote users, and from there, we will move on to getting access through GUI administration tools.
We will also introduce the psql query tool, which is the tool used to load our sample database, as well as many other examples in the book.
For additional help, we've included a few useful recipes that you may need for reference.
In this chapter, we will cover the following recipes:
  • Introducing PostgreSQL
  • How to get PostgreSQL
  • Connecting to the PostgreSQL server
  • Enabling access for network/remote users
  • Using the pgAdmin GUI tool
  • Using the OmniDB GUI tool
  • Using the psql query and scripting tool
  • Changing your password securely
  • Avoiding hardcoding your password
  • Using a connection service file
  • Troubleshooting a failed connection
  • PostgreSQL in the cloud

Introducing PostgreSQL 14

PostgreSQL is an advanced SQL database server, available on a wide range of platforms. One of the clearest benefits of PostgreSQL is that it is open source, meaning that you have a very permissive license to install, use, and distribute PostgreSQL, without paying anyone any fees or royalties. On top of that, PostgreSQL is known as a database that stays up for long periods and requires little or no maintenance, in most cases. Overall, PostgreSQL provides a very low total cost of ownership.
PostgreSQL is also known for its huge range of advanced features, developed over the course of more than 30 years of continuous development and enhancement. Originally developed by the Database Research Group at the University of California, Berkeley, PostgreSQL is now developed and maintained by a huge army of developers and contributors. Many of these contributors have full-time jobs related to PostgreSQL, working as designers, developers, database administrators, and trainers. Some, but not many, of these contributors work for companies that specialize in support for PostgreSQL. No single company owns PostgreSQL, nor are you required (or even encouraged) to register your usage.
PostgreSQL has the following main features:
  • Excellent SQL standards compliance, up to SQL:2016.
  • Client-server architecture.
  • It has a highly concurrent design, where readers and writers don't block each other.
  • It is highly configurable and extensible for many types of applications.
  • It has excellent scalability and performance, with extensive tuning features.
  • It offers support for many kinds of data models, such as relational, post-relational (arrays and nested relations via record types), document (JSON and XML), and key/value.

What makes PostgreSQL different?

The PostgreSQL project focuses on the following objectives:
  • Robust, high-quality software with maintainable, well-commented code
  • Low-maintenance administration for both embedded and enterprise use
  • Standards-compliant SQL, interoperability, and compatibility
  • Performance, security, and high availability
What surprises many people is that PostgreSQL's feature set is more similar to Oracle or SQL Server than it is to MySQL. The only connection between MySQL and PostgreSQL is that these two projects are open source; apart from that, the features and philosophies are almost totally different.
One of the key features of Oracle, since Oracle 7, has been snapshot isolation, where readers don't block writers and writers don't block readers. You may be surprised to learn that PostgreSQL was the first database to be designed with this feature, and it offers a complete implementation. In PostgreSQL, this feature is called Multiversion Concurrency Control (MVCC), and we will discuss this in more detail later in the book.
PostgreSQL is a general-purpose database management system. You define the database that you want to manage with it. PostgreSQL offers you many ways in which to work. You can either use a normalized database model, augmented with features such as arrays and record subtypes, or use a fully dynamic schema with the help of JSONB and an extension named hstore. PostgreSQL also allows you to create your own server-side functions in any of a dozen different languages.
PostgreSQL is highly extensible, so you can add your own data types, operators, index types, and functional languages. You can even override different parts of the system, using plugins to alter the execution of commands, or add a new query optimizer.
All of these features offer a huge range of implementation options to software architects. There are many ways out of trouble when building applications and maintaining them over long periods of time. Regrettably, we simply don't have space in this book for all the cool features for developers; this book is about administration, maintenance, and backup.
In the early days, when PostgreSQL was still a research database, the focus was solely on the cool new features. Over the last 20 years, enormous amounts of code have been rewritten and improved, giving us one of the largest and most stable software servers available for operational use.
Who is using PostgreSQL? Prominent users include Apple, BASF, Genentech, Heroku, IMDB, Skype, McAfee, NTT, the UK Met Office, and the US National Weather Service. Early in 2010, PostgreSQL received well in excess of 1,000,000 downloads per year, according to data submitted to the European Commission, which concluded that "PostgreSQL is considered by many database users to be a credible alternative." PostgreSQL has gone on from there to be even more popular.
We nee...

Indice dei contenuti

  1. PostgreSQL 14 Administration Cookbook
  2. Contributors
  3. About the authors
  4. About the reviewers
  5. Preface
  6. Chapter 1: First Steps
  7. Chapter 2: Exploring the Database
  8. Chapter 3: Server Configuration
  9. Chapter 4: Server Control
  10. Chapter 5: Tables and Data
  11. Chapter 6: Security
  12. Chapter 7: Database Administration
  13. Chapter 8: Monitoring and Diagnosis
  14. Chapter 9: Regular Maintenance
  15. Chapter 10: Performance and Concurrency
  16. Chapter 11: Backup and Recovery
  17. Chapter 12: Replication and Upgrades
  18. Other Books You May Enjoy
Stili delle citazioni per PostgreSQL 14 Administration Cookbook

APA 6 Citation

Riggs, S., & Ciolli, G. (2022). PostgreSQL 14 Administration Cookbook (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/3448796/postgresql-14-administration-cookbook-pdf (Original work published 2022)

Chicago Citation

Riggs, Simon, and Gianni Ciolli. (2022) 2022. PostgreSQL 14 Administration Cookbook. 1st ed. Packt Publishing. https://www.perlego.com/book/3448796/postgresql-14-administration-cookbook-pdf.

Harvard Citation

Riggs, S. and Ciolli, G. (2022) PostgreSQL 14 Administration Cookbook. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/3448796/postgresql-14-administration-cookbook-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Riggs, Simon, and Gianni Ciolli. PostgreSQL 14 Administration Cookbook. 1st ed. Packt Publishing, 2022. Web. 15 Oct. 2022.