Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learn PostgreSQL - Second Edition

You're reading from  Learn PostgreSQL - Second Edition

Product type Book
Published in Oct 2023
Publisher Packt
ISBN-13 9781837635641
Pages 744 pages
Edition 2nd Edition
Languages
Authors (2):
Luca Ferrari Luca Ferrari
Profile icon Luca Ferrari
Enrico Pirozzi Enrico Pirozzi
Profile icon Enrico Pirozzi
View More author details

Table of Contents (22) Chapters

Preface Introduction to PostgreSQL Getting to Know Your Cluster Managing Users and Connections Basic Statements Advanced Statements Window Functions Server-Side Programming Triggers and Rules Partitioning Users, Roles, and Database Security Transactions, MVCC, WALs, and Checkpoints Extending the Database – the Extension Ecosystem Query Tuning, Indexes, and Performance Optimization Logging and Auditing Backup and Restore Configuration and Monitoring Physical Replication Logical Replication Useful Tools and Extensions Other Books You May Enjoy
Index

Exploring data types

As users, we have already had the opportunity to experience the power and versatility of server-side functions – for example, in Chapter 5, Advanced Statements, we used a query similar to the following:

forumdb=> select * from categories where upper(title) like 'A%';
 pk | title |         description    
----+-------+------------------------------
  4 | A.I   | Machine Learning discussions
(1 row)

In this piece of code, the upper function is a server-side function; this function turns all the characters of a string into uppercase. In this chapter, we will acquire the knowledge to be able to write functions such as the upper function that we called in the preceding query.

In this section, we’ll talk about data types. We will briefly mention the standard types managed by PostgreSQL and how to create new ones.

The concept of extensibility

What is extensibility? Extensibility is PostgreSQL’s ability to extend...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}