Skip to main content
Filter by
Sorted by
Tagged with
Best practices
1 vote
3 replies
86 views

I`m big fan of board games, and when professor ask what I want to write as a diploma, I make decision fast - service for online board games. Now I have some questions, which I don't know how to ...
Саша Порохня's user avatar
0 votes
0 answers
59 views

I am looking for query to get statistic of index fragmentation in Postgres. I know about pgstattuple but it performs live scan on index which is expensive and so I don't want to use it. I have found ...
Nik's user avatar
  • 461
3 votes
3 answers
132 views

Using PostgreSQL 18, I want to import a large .csv file with unknown column names and types. I have 2 related .csv files: The 1st file contains around 100 columns and 2,000,000 rows of data, like ...
Jake's user avatar
  • 61
Advice
2 votes
9 replies
104 views

Take the example of SO: you have a votes table and a posts table. You want to keep in sync the vote count for each post but the votes table is the source of truth. You can use statement level triggers ...
sh03's user avatar
  • 76.6k
0 votes
1 answer
38 views

Problem I'm using NextAuth v4.24.13 with @auth/prisma-adapter for OAuth authentication. The login flow works perfectly in my local development environment, but consistently hangs and times out on ...
Zero's user avatar
  • 727
Best practices
1 vote
9 replies
73 views

I'm creating a table to represent the degree of relatedness between a large group of tags. My app involves user-created entries which can have one or more tags, and for each pair of tags (there are ...
Enderhippo's user avatar
1 vote
0 answers
59 views

I am trying to restore a database backup from a self-hosted PostgreSQL 13 instance to Cloud SQL for PostgreSQL 17. The source database has the PostGIS extension with ArcSDE and custom data types and ...
Sri Ram's user avatar
  • 11
1 vote
1 answer
62 views

Using the PostgreSQL-specific slick-pg extension of slick, which supports multi-upsert. Let's consider a small example. CREATE TABLE foo (id INT PRIMARY KEY, name TEXT DEFAULT 'foo'); The ...
silverberry's user avatar
1 vote
0 answers
95 views

I have few node microservices connected to single postgres db. I also have an elixir service for realtime message passing between BE and FE. I am now enhancing realtime service with some additional ...
Abhinav Kulshreshtha's user avatar
-2 votes
0 answers
57 views

UPDATE 1: I searched in the codebase and I am seeing in the below files, can you please let me know where to update, since I am a beginner not sure where to update the port 5432, providing the image ...
user1365117's user avatar
Best practices
2 votes
4 replies
124 views

Relatively new to SQL and want to learn best practices for "safe" queries. If I have queries like "SELECT {cols} FROM {table} WHERE {condition}" or SELECT {cols} FROM ...
Frontline's user avatar
0 votes
1 answer
132 views

In an application cleanup job, I need to remove all rows from a table regularly. Table: CREATE TABLE session_logs ( id BIGSERIAL PRIMARY KEY, session_id TEXT, created_at TIMESTAMPTZ, ...
Imtiaz Ghous's user avatar
13 votes
3 answers
802 views

I'm debugging a performance regression in an application that uses prepared statements against PostgreSQL 15. I have a table with skewed data distribution: CREATE TABLE invoice_events ( id ...
Imtiaz Ghous's user avatar
Advice
0 votes
1 replies
55 views

As an action of our last test my company implemented log_replication_commands to 'log all replication commands that are executed in your database cluster to ensure the data is not off-loaded to an ...
Krishnp92's user avatar
3 votes
1 answer
106 views

After upgrading to PostgreSQL 18, pgoutput no longer sends BEGIN/COMMIT for transactions that touch only tables outside the publication. This is by design (see related question). Our replication slot'...
valerii's user avatar
  • 67

15 30 50 per page
1
2 3 4 5
11931