Blog

Page 54 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to thoroughly purge and reinstall postgresql on ubuntu?

How to thoroughly purge and reinstall postgresql on ubuntu?

Published on September 2, 2023

## How to Thoroughly Purge and Reinstall PostgreSQL on Ubuntu 💥🔧💻 So, you've managed to bugger up your PostgreSQL installation on Ubuntu Karmic. We've all been there! But fear not, because I'm here to guide you through the process of thoroughly purging

Cover Image for How to perform update operations on columns of type JSONB in Postgres 9.4

How to perform update operations on columns of type JSONB in Postgres 9.4

Published on September 2, 2023

# How to Perform Update Operations on Columns of Type JSONB in Postgres 9.4 🔄 So you're working with PostgreSQL 9.4 and you've encountered a bit of a head-scratcher. You need to update a column of type JSONB, but you're not quite sure how to go about it.

Cover Image for Select rows which are not present in other table
null

Select rows which are not present in other table

Published on September 2, 2023

# How to Select Rows Which are not Present in Other Table Are you trying to fetch rows from one table that are not present in another table? 👀 Don't worry, we've got you covered! In this guide, we'll show you a simple solution to this problem using Postg

Cover Image for How do I query using fields inside the new PostgreSQL JSON datatype?
json

How do I query using fields inside the new PostgreSQL JSON datatype?

Published on September 2, 2023

# How to Query Using Fields Inside the New PostgreSQL JSON Datatype 🕵️‍♂️ Are you curious about the new JSON functions in PostgreSQL 9.2? 🤔 Look no further! In this guide, we will explore how to query records using fields inside the new PostgreSQL JSON

Cover Image for Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib

Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib

Published on September 2, 2023

# Solving the "Library not loaded" Error in PostgreSQL So, you just installed PostgreSQL using Homebrew and you're excited to get started. But as soon as you type in the command `psql`, you hit a roadblock. Error message "dyld: Library not loaded: /usr/lo

Cover Image for How to see the CREATE VIEW code for a view in PostgreSQL?

How to see the CREATE VIEW code for a view in PostgreSQL?

Published on September 2, 2023

# How to Unveil the CREATE VIEW Code in PostgreSQL? So, you want to unravel the CREATE VIEW code for a view in PostgreSQL. 🤔 No worries, mate! We got you covered. 💪 ### The Problem: You've probably been trying to find an easy way to see the code used

Cover Image for Select datatype of the field in postgres

Select datatype of the field in postgres

Published on September 2, 2023

# Understanding Data Types in Postgres 📊 So you're working with PostgreSQL and you need to find out the datatype of a specific field in a table? Don't worry, I got your back! In this blog post, we'll address this common issue and provide you with easy so

Cover Image for Using current time in UTC as default value in PostgreSQL
timestamptimezone

Using current time in UTC as default value in PostgreSQL

Published on September 2, 2023

# Using current time in UTC as default value in PostgreSQL Hey there! 👋 Are you trying to set the default value of a `TIMESTAMP WITHOUT TIME ZONE` column to the current time in UTC using PostgreSQL? 🤔 Well, you've come to the right place! In this blog p

Cover Image for Postgres unique constraint vs index
indexingunique

Postgres unique constraint vs index

Published on September 2, 2023

# Postgres Unique Constraint vs Index: The Battle of Equivalents 🎭 So, you stumbled upon the question: "Postgres unique constraint vs index." It seems like these two definitions are equivalent, right? Well, buckle up because we're about to dive into the

Cover Image for How to alter a column"s data type in a PostgreSQL table?

How to alter a column"s data type in a PostgreSQL table?

Published on September 2, 2023

# How to Alter a Column's Data Type in a PostgreSQL Table? Have you ever tried altering the data type of a column in a PostgreSQL table, only to encounter an error? You're not alone! Many developers struggle with this issue, but fear not - we're here to h