Blog

Page 52 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to list indexes created for table in postgres
indexing

How to list indexes created for table in postgres

Published on September 2, 2023

# How to List Indexes Created for a Table in Postgres šŸ˜Ž šŸ‘‹ Hey there tech enthusiasts! Are you struggling to figure out how to check what indexes are created for a specific table in PostgreSQL? If so, you've come to the right place! šŸ™Œ In this blog post

Cover Image for psql invalid command \N while restore sql

psql invalid command \N while restore sql

Published on September 2, 2023

## šŸ˜šŸ”Œ PSQL Invalid Command \N while Restoring SQL: A Simple Solution šŸ› ļøšŸ’” Are you feeling frustrated with an error message popping up while trying to restore your precious dump file using PSQL? Don't worry, you're not alone! Many folks have stumbled up

Cover Image for Postgresql - change the size of a varchar column to lower length

Postgresql - change the size of a varchar column to lower length

Published on September 2, 2023

# How to Change the Size of a varchar Column in PostgreSQL šŸ˜šŸ’» Have you ever found yourself in a situation where you needed to change the size of a `varchar` column in a PostgreSQL table, but weren't sure how to go about it? Fear not! In this blog post,

Cover Image for How to add column if not exists on PostgreSQL?

How to add column if not exists on PostgreSQL?

Published on September 2, 2023

šŸ“ **Tech Blog**: How to Add Column if Not Exists on PostgreSQL? šŸ’»šŸ˜ Hey there, tech-savvy readers! šŸ‘‹ Today, we're tackling a question that even seasoned PostgreSQL users often stumble upon: "How to add a column if it doesn't already exist?" šŸ’” Imagine

Cover Image for input file appears to be a text format dump. Please use psql

input file appears to be a text format dump. Please use psql

Published on September 2, 2023

šŸ“ *Tech Blog: Solving the "input file appears to be a text format dump. Please use psql" Error with psql* Hey there tech enthusiasts! Today, let's dive into a common issue that many developers face while importing a PostgreSQL backup file. If you've rece

Cover Image for How do you find the disk size of a Postgres / PostgreSQL table and its indexes

How do you find the disk size of a Postgres / PostgreSQL table and its indexes

Published on September 2, 2023

--- # Title: "How to Easily Find the Disk Size of a Postgres Table and its Indexes" Hey there, fellow tech enthusiasts! šŸ‘‹ So, you've recently made the switch from Oracle to Postgres, but now you're scratching your head wondering how to find the disk si

Cover Image for Run a query with a LIMIT/OFFSET and also get the total number of rows
count

Run a query with a LIMIT/OFFSET and also get the total number of rows

Published on September 2, 2023

## šŸ“œ The Ultimate Guide to Running a Query with LIMIT/OFFSET and Getting the Total Number of Rows Are you tired of running separate queries to fetch a limited number of rows and count the total number of rows in your database? šŸ¤” Don't worry, we've got y

Cover Image for PostgreSQL INSERT ON CONFLICT UPDATE (upsert) use all excluded values

PostgreSQL INSERT ON CONFLICT UPDATE (upsert) use all excluded values

Published on September 2, 2023

# PostgreSQL INSERT ON CONFLICT UPDATE (upsert) - Use All EXCLUDED Values! šŸš€ Have you ever wondered if there's a shorter and simpler way to perform an UPSERT operation in PostgreSQL? You know, to effortlessly handle conflict errors when inserting a row a

Cover Image for How to display the function, procedure, triggers source code in postgresql?

How to display the function, procedure, triggers source code in postgresql?

Published on September 2, 2023

# How to Display Function, Procedure, and Trigger Source Code in PostgreSQL? šŸ“šŸ” Do you find yourself in a situation where you need to display the source code of functions, procedures, or triggers in PostgreSQL? Don't worry! We've got you covered! In thi

Cover Image for How do I convert an integer to string as part of a PostgreSQL query?

How do I convert an integer to string as part of a PostgreSQL query?

Published on September 2, 2023

šŸ”¢šŸ’¬ How to Convert an Integer to String in PostgreSQL Queries šŸ‘‹ Hey there tech-savvy folks! Welcome to our cool tech blog where we tackle complex problems in a super simple way, using those beloved emojis and all. Today, we're diving deep into the world