Skip to main content

Questions tagged [postgresql-performance]

Performance issues with PostgreSQL queries

0 votes
1 answer
50 views

I just discovered that logical replication doesn't work between different schemas, like you cannot publish schema1.table1 in server1 to schema2.table1 in server2. In my setup, I have multiple servers ...
sophia sophia's user avatar
1 vote
1 answer
111 views

We've been tasked to restore one large database on daily basis for analytics purpose. Here is something that we cannot change: Vendor provided database dump file on daily basis on S3 We cannot ...
Rianto Wahyudi's user avatar
1 vote
1 answer
103 views

I have the following table partitioned by projects. CREATE TABLE IF NOT EXISTS entries ( id bigint NOT NULL, status_id bigint NOT NULL, group_id bigint NOT NULL, project_id bigint ...
Josh's user avatar
  • 13
0 votes
1 answer
109 views

We're running PostgreSQL v11.7 (upgrade is already planned) on Windows and seem to be hitting a rare dynamic shared memory bug #15749 which results in the error message: FATAL: cannot unpin a segment ...
andrews's user avatar
  • 258
0 votes
2 answers
110 views

In PostgreSQL 15, there is a large non-partitioned table (~2.4 TB) where VACUUM has stopped completing in an acceptable time and has been stuck in the vacuuming indexes phase for 4 days. ...
Fahrenheit's user avatar
1 vote
1 answer
94 views

I’m working with PostgreSQL 15 and need to move rows from TableA into TableB_dedup. TableB_dedup has a primary key that should "eat" duplicate rows — effectively performing deduplication ...
Fahrenheit's user avatar
0 votes
2 answers
90 views

In PostgreSQL 16.9 I have a table Time (duration, resourceId, date, companyId) representing timesheet entries and table Resources (id, name); I want to list sum of Time durations per week and employee ...
Lukas Macha's user avatar
0 votes
0 answers
47 views

I'm working with PostgreSQL 15 and experimenting with table partitioning to improve performance. Original setup: I have two tables: tasks (parent) with ~65M rows and records (child) with ~200M ...
Cowabunga's user avatar
  • 145
1 vote
0 answers
44 views

My question is about PostgreSQL. I found similar questions for MS SQL server but I don't know if the answers apply here. My table looks like this: scores ====== | ID | UserID | ValidFrom | ValidUntil ...
MrSnrub's user avatar
  • 181
4 votes
1 answer
205 views

I'm using PostgreSQL 14.17. My database schema has two tables: Table "public.log_records" Column | Type ...
willn-cpx's user avatar
0 votes
1 answer
112 views

I saw some log entries that indicated transaction time outliers of up to 10s at times, where transaction times are typically below 1s. To get a view of how often this happens, is there a way to get ...
nsandersen's user avatar
1 vote
1 answer
123 views

I am using PostgreSQL 14.17. I am trying to debug a query planner failure in a bigger query, but I think I've narrowed down the problem to a self-join on a join table: SELECT t2.item_id FROM ...
Felipe's user avatar
  • 317
0 votes
0 answers
57 views

I am getting ERROR: invalid memory alloc request size 2727388320 after I tried vacuuming in EnterpriseDB. It is getting bigger and bigger. How to solve this issue now ?
MD Nasirul Islam's user avatar
0 votes
2 answers
115 views

I’m facing a strange issue with PostgreSQL query performance. The same query runs in under 1 second during certain periods, but takes around 20 seconds at other times. However, the data volume and ...
Suruthi Sundararajan's user avatar
0 votes
1 answer
54 views

I am modeling my star schema. So, I want to create my dimension table for the customer, and the primary key from the raw table is a varchar. Is it advisable to make a surrogate key that will stand as ...
Chidinma Okeh's user avatar

15 30 50 per page
1
2 3 4 5
82