Blog
Page 64 of my articles, tutorials, and thoughts
Latest Articles
How to find duplicate records in PostgreSQL
š How to Find Duplicate Records in PostgreSQL š So, you've got a PostgreSQL database table with some duplicate records that are causing a bit of trouble. Don't worry, we're here to help you find and tackle those pesky duplicates! 𦾠The first thing you
Update multiple rows in same query using PostgreSQL
# Updating Multiple Rows in One Go Using PostgreSQL šŖ Updating multiple rows in PostgreSQL can be a bit tricky, but fear not! We've got you covered with easy solutions to this common problem. In this blog post, we'll explore how you can update multiple r
How to create User/Database in script for Docker Postgres
š **Tech Blog Post: How to Create User/Database in Script for Docker Postgres** Are you struggling to set up a custom user and database in a Docker Postgres container? Don't worry, I've got you covered! šš³ ## The Challenge When using the official Pos
Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL
# How to Extract the Date from a Timestamp in PostgreSQL So you have a timestamp in PostgreSQL, but you only need the date part. Maybe you want to insert it into another table that expects a `DATE` value. Don't worry, we've got you covered! In this guide,
Create unique constraint with null columns
# Creating a Unique Constraint with Null Columns in PostgreSQL Hey there! š Are you facing an issue with creating a unique constraint in PostgreSQL? Look no further, because I've got you covered! In this blog post, we'll address a specific problem where
How to generate the "create table" sql statement for an existing table in postgreSQL
# How to Generate the "CREATE TABLE" SQL Statement for an Existing Table in PostgreSQL š So, you created a table in PostgreSQL, but now you find yourself in a pickle. You want to take a peek at the SQL statement used to create the table, but you're scrat
How to persist data in a dockerized postgres database using volumes
š How to Persist Data in a Dockerized Postgres Database Using Volumes š¦š¾ Are you struggling to persist data in your Dockerized Postgres database? š© Don't worry, we're here to help! In this blog post, we'll address a common issue and provide easy solut
How to list active connections on PostgreSQL?
# How to List Active Connections on PostgreSQL Are you facing the frustrating issue of not being able to drop a database in PostgreSQL because there are active connections to it? Don't worry, we've got you covered! In this article, we'll show you how to l
How to UPSERT (MERGE, INSERT ... ON DUPLICATE UPDATE) in PostgreSQL?
# How to UPSERT (MERGE, INSERT ... ON DUPLICATE UPDATE) in PostgreSQL? š Hey there tech enthusiasts! Today we're diving into the thrilling world of PostgreSQL and tackling a frequently asked question: How do you perform an UPSERT operation in PostgreSQL?






