Sling Academy
Home/PostgreSQL/Page 36

PostgreSQL

PostgreSQL is a free and open-source database system that supports both relational and non-relational queries. It is reliable, user-friendly, and extensible, with many features such as user-defined types, table inheritance, nested transactions, and asynchronous replication. It supports various programming languages and platforms.

PostgreSQL: 4 Ways to Auto-Backup a Database on Mac and Windows

Updated: Jan 04, 2024
Overview Ensuring that your PostgreSQL data is regularly backed up is crucial for data recovery and protection. This guide covers various methods for automating database backups on both Mac and Windows operating systems, each with its......

PostgreSQL: How to Grant/Revoke Permissions to a User

Updated: Jan 04, 2024
Introduction Managing permissions is a crucial aspect of database administration. In PostgreSQL, the GRANT and REVOKE commands are used to control access to database objects. This tutorial will walk you through the process of granting......

How to Change User Password in PostgreSQL

Updated: Jan 04, 2024
Introduction Changing a user password in PostgreSQL is a common task for database administrators that ensures access control and enhances security. In this tutorial, we’ll discuss several methods to change the user password in......

How to See the Size of a Database in PostgreSQL

Updated: Jan 04, 2024
Introduction When managing PostgreSQL databases, it’s often necessary to monitor their size for performance tuning, capacity planning, and to optimize resource allocation. This tutorial provides a step-by-step approach to......

2 Ways to Import and Export Databases in PostgreSQL

Updated: Jan 04, 2024
Introduction When managing PostgreSQL databases, there will undoubtedly come a time when you need to export data from one database and import it into another. This can be due to various reasons such as database backups, migrating data......

3 Ways to See All Databases in PostgreSQL

Updated: Jan 04, 2024
Introduction In PostgreSQL, viewing all available databases is a common and important task for database administrators and developers. This guide presents several methods to list all databases in your PostgreSQL server, highlighting......

PostgreSQL: How to Delete a Row and Return Deleted Record

Updated: Jan 04, 2024
Introduction When working with PostgreSQL, there may be instances where you not only want to delete a record but also retrieve it for logging or further processing. This tutorial will guide you through the syntax and steps required to......

PostgreSQL: How to Bulk Update/Delete Rows with IDs

Updated: Jan 04, 2024
The Matter Managing large datasets efficiently often requires performing bulk operations, such as updating or deleting multiple rows identified by specific IDs. PostgreSQL, as a powerful relational database management system, provides......

PostgreSQL: How to Update a Row and Return Updated Record

Updated: Jan 04, 2024
Introduction Updating a record and immediately retrieving the modified data is a common task in database operations. In this tutorial, we’ll learn how to update a row in PostgreSQL and return the updated record using practical......

PostgreSQL: Add ‘not null’ constraint to existing column

Updated: Jan 04, 2024
Introduction Ensuring data integrity is crucial in database management, and setting ‘not null’ constraints is a foundational aspect of that. This tutorial will guide you through adding a ‘not null’ constraint to......

PostgreSQL: Use ‘Returning’ with ‘Insert’ statement to get information about inserted row

Updated: Jan 04, 2024
Introduction Working effectively with databases often means needing immediate feedback from operations. PostgreSQL’s ‘RETURNING’ clause with the ‘INSERT’ statement is a powerful feature that helps in......

PostgreSQL: created_at and updated_at columns

Updated: Jan 04, 2024
Introduction Managing creation and update timestamps is a common task in database design. PostgreSQL offers robust functionality for automating this process to ensure your data accurately reflects record changes. Why Use created_at......