Search Results

Showing results for "postgresql"

Latest Articles

Cover Image for postgresql COUNT(DISTINCT ...) very slow
countperformance

postgresql COUNT(DISTINCT ...) very slow

Published on September 2, 2023

# Understanding the issue: PostgreSQL COUNT(DISTINCT ...) very slow So you're facing a problem with the performance of your PostgreSQL query that uses the `COUNT(DISTINCT ...)` function. The query takes significantly more time compared to a simple `COUNT(

Cover Image for Group query results by month and year in postgresql

Group query results by month and year in postgresql

Published on September 2, 2023

# How to Group Query Results by Month and Year in PostgreSQL If you're working with a PostgreSQL database and need to group query results by month and year, you've come to the right place! In this guide, we'll walk you through the process step-by-step and

Cover Image for Are PostgreSQL column names case-sensitive?
identifier

Are PostgreSQL column names case-sensitive?

Published on September 2, 2023

# Are PostgreSQL column names case-sensitive? šŸ—‚ļøšŸ”Ž When working with PostgreSQL, you may encounter a question: Are column names case-sensitive? The short answer is - yes, they are! šŸ¤” **Why does this matter?** Well, it can often lead to confusion and fr

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 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 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 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 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

Cover Image for Grouped LIMIT in PostgreSQL: show the first N rows for each group?

Grouped LIMIT in PostgreSQL: show the first N rows for each group?

Published on September 2, 2023

šŸ“ GROUPED LIMIT IN POSTGRESQL: SHOW THE FIRST N ROWS FOR EACH GROUP? 🐘 Are you struggling with fetching the first N rows for each group in PostgreSQL? 😣 Don't worry, we've got you covered! In this blog post, we'll explore common issues and provide easy

Cover Image for Why do we need message brokers like RabbitMQ over a database like PostgreSQL?
redis

Why do we need message brokers like RabbitMQ over a database like PostgreSQL?

Published on September 2, 2023

# Why Do We Need Message Brokers like RabbitMQ Over a Database like PostgreSQL? šŸ°šŸ“¦šŸ˜ So, you're new to the world of message brokers and you're wondering why we need them, especially when we already have a reliable database like PostgreSQL. šŸ¤” Let's div