Skip to main content

Questions tagged [postgresql]

PostgreSQL is an open-source, relational database management system (RDBMS) available for all major platforms, including Linux, UNIX, Windows and OS X. Mention your version of Postgres when asking questions. Consider dba.stackexchange.com for questions concerning the administration or advanced features.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

I recently upgraded my database from PolarDB-PG 14 to PolarDB-PG 16, and I'm experiencing inconsistent sorting behavior despite having identical collation and ctype settings (en_US.UTF-8 in both ...
Huey's user avatar
  • 1
Best practices
0 votes
0 replies
14 views

From a performance perspective, does it make sense to create a new dslContext per HTTP/API request? I need to set some request specific session variables (like user_id), for dslContext but I'm worried ...
Mahdi's user avatar
  • 2,361
-3 votes
0 answers
33 views

During automated database deployment with pg_dump/pg_restore, I encounter a dependency ordering issue that breaks CI/CD pipelines when using ON_ERROR_STOP=on. Problem: pg_dump executes DROP RULE for ...
Dominik's user avatar
  • 1,443
2 votes
1 answer
52 views

I'm looking to generate this sort of SQL dynamically and safely in psycopg2 / psycopg: '"my_schema_name"."my_table_name"'::regclass where ...
Michal Charemza's user avatar
-3 votes
1 answer
65 views

I am trying to set up a Spring Batch project using Spring Boot 4.0.0 The application starts successfully, but the standard Spring Batch meta-data tables (e.g., ...
youssef_ehab's user avatar
Best practices
0 votes
0 replies
36 views

I’m building an app that stores long, unstructured notes like: “February 6th, 2026 – This is a note about Bob Maynard. He likes the color green…” These notes can be fairly long and I need to: Store ...
wgm's user avatar
  • 11
Tooling
0 votes
3 replies
50 views

I have started putting together a C# asp .Net Core REST web API using SQLite for a simple start. I like the way it goes, but want to try out postgresql, as it has JSON support. However I am not able ...
Kiaurutis's user avatar
  • 907
Best practices
0 votes
3 replies
46 views

I have set up a postgres asyncronous streaming replica of our database server as part of our Disaster recovery solution, now it is read only and we must do drills as part of preparing for disasters ...
jrlevi's user avatar
  • 1
Advice
1 vote
2 replies
61 views

I’m using Alibaba Cloud PolarDB for PostgreSQL and using the pgvector extension to store embeddings. I noticed a performance regression during executing UPDATE after I add a HNSW index. Performance I ...
buriedpot's user avatar
-3 votes
0 answers
36 views

so I'm asking here about the behavior of pg_restore, we have a situation here when restoring the database using pg_restore is changed on partition table. context : the trigger was executed before ...
Faris Mauludy's user avatar
3 votes
0 answers
34 views

I am using IMCI of PolarDB for PostgreSQL. My table creation statement is like this: ...
fanvanzh's user avatar
Advice
0 votes
3 replies
51 views

Will Statement execution be canceled if the thread that is executing it is interrupt()ed (...
Sergey Zolotarev's user avatar
Advice
1 vote
8 replies
79 views

I have several different jobs that can run throughout the day to read data from various sources and update my database. I want to ensure that two jobs are not trying to update the database at once. ...
John Gordon's user avatar
  • 33.8k
6 votes
1 answer
115 views

How do I confirm that JdbcTemplate is fetching the records into the result set in batches of 1000 when setFetchSize(1000) is set on the statement? I am using PostgreSQL JDBC driver here. Below is my ...
ashtrix-001's user avatar
-5 votes
0 answers
58 views

I have two background jobs created in go (one with context, and the other without). The context job runs every 8 seconds to parse log files and saves an email based on domain logic to the outbox ...
emt2dev's user avatar
0 votes
3 answers
94 views

I have 3 tables that represent three states of a process. The first table stores information about an attempt. The next one stores information on failed attempts, the last one on successful attempts. ...
Code4R7's user avatar
  • 3,216
0 votes
0 answers
43 views

I have a PostgreSQL database with tables, views, custom types, and collations. I export this DB with pg_dump: ...
Dominik's user avatar
  • 1,443
Advice
2 votes
2 replies
58 views

I have a PolarDB PG14 physical standby created from a base backup and configured for streaming replication. WAL replay appears to be progressing, but the standby never becomes available for read-only ...
ccxikka's user avatar
1 vote
1 answer
39 views

I am trying to do reindex concurrently on a table, but when I see pg_stat_activtity it shows in Lock state with ...
nmakb's user avatar
  • 1,313
Advice
0 votes
0 replies
9 views

I am struggling to correctly display a time series (Area Chart) in Apache Superset where the X-Axis represents weeks in the format WW/YYYY. I have two main issues ...
user32313932's user avatar
Best practices
0 votes
5 replies
71 views

I am looking for feedback on the normalisation of my physical data model which I designed for my school project for a service to match users based on their preferences. The data model is supposed to ...
1million_ naira's user avatar
-1 votes
0 answers
39 views

I’m setting up a Spilo (Postgres HA) cluster inside Docker with mTLS for both Postgres and Etcd. I’m facing two issues: Databases specified in ...
ussrback's user avatar
  • 647
-2 votes
0 answers
30 views

Below is my Docker Compose script. However, Temporal only showing "Waiting for PostgreSQL to startup" when I execute docker compose up. ...
Mahesh Singh Bisht's user avatar
0 votes
0 answers
37 views

I am building a Node.js/Express backend using TypeScript, Prisma, and PostgreSQL (Supabase) and encountering a weird issue where this.prismaClient.user.findUnique ...
dummylearningtocode's user avatar
Advice
0 votes
2 replies
28 views

I am working on a C-UDF for Postgres, where i would like to somehow read from a passed Typed-Tuplestore in parallel. Either pthreads or worker-processes is fine, as long as the access isn't combined ...
Clebo Sevic's user avatar
0 votes
1 answer
60 views

I'm trying to seed my new Database with drizzle-seed, but I get this error that didn't said to me much. All that I get is a persitent. ...overriding system value ...
molavec's user avatar
  • 9,274
Best practices
0 votes
2 replies
39 views

I'm playing around with Postgres 18 temporal keys. At the moment, I have this schema: ...
Philippe's user avatar
  • 307
3 votes
0 answers
154 views

I have next PostrgreSQL query: ...
sankranti's user avatar
0 votes
1 answer
65 views

I'm using FastAPI with SQLAlchemy 2.0 (Async). I want to follow the best practice of wrapping my route logic in transactions. However, I'm struggling to make this work with my Pytest suite where I use ...
Tserediani's user avatar
2 votes
3 answers
111 views

I've got this situation in which I need to copy and split account information: ...
Code4R7's user avatar
  • 3,216
-2 votes
0 answers
59 views

I just start learning Golang and I'm currently using Echo. I have an endpoint : - base/api/wallet/cardnumber -> get card details and I execute "go run .\main.go" and the API provide ...
Ray's user avatar
  • 49
Advice
0 votes
1 replies
19 views

I am trying to connect to a PostgreSQL 17.5 database from my Mac using .NET 6. The connection works perfectly from Linux pods in Kubernetes, but on my Mac, I get the following error: Npgsql....
pregmatch's user avatar
  • 2,673
Advice
0 votes
1 replies
20 views

I’m part of a dev team using a shared PostgreSQL instance for our development environment. Recently, I had to remove a field from the DB for a specific feature. I ran the migration, but the task ended ...
Jeet Patel's user avatar
Advice
0 votes
1 replies
30 views

Problem I’m loading a monthly snapshot dataset into PostgreSQL where the source does not provide a stable natural key for one of the entities. The dataset is similar to the Brazilian CNPJ sócios (...
Ian Aragão's user avatar
0 votes
0 answers
56 views

I am trying to migrate between DB instances using the pg_dump util, but running into some odd behavior where it tries to create the types and operators belonging to ...
Layman's user avatar
  • 1,076
Best practices
0 votes
1 replies
19 views

I’m working on a BI architecture where SAP ECC is running on MaxDB (on-prem). The goal is not to migrate or replace MaxDB, but to replicate/synchronize selected tables into PostgreSQL for analytics ...
João Ramos's user avatar
Advice
1 vote
9 replies
72 views

In SQL, if I omit the ORDER BY clause from a window function's OVER() clause, will it use the parent statement's ...
Dan's user avatar
  • 5,080
1 vote
0 answers
90 views

Our project uses the PostgreSQL database, managed via EclipseLink. Horizontal scaling is planned by migrating to the sharded Postgres Pro Shardman. Currently, the primary key of each table is a unique ...
denisnumb's user avatar
0 votes
1 answer
56 views

I just find out tsvector and tsquery in PostgreSQL but even I already read the description in the documentation I still not ...
Yang Yu Xuan's user avatar
0 votes
0 answers
51 views

I understand that passing values to SQL & plPGSQL functions involves passing by value instead of reference. Just wanted to clarify that if I pass jsonb or huge multiple arrays to a function (say ...
Kapil's user avatar
  • 286
Best practices
0 votes
4 replies
43 views

I am designing a database schema in PostgreSQL for a notification system. I have several distinct "parent" entities that can trigger a notification log: ...
Darryl Soh Soon Yong's user avatar
Advice
2 votes
3 replies
61 views

I am creating a database with temporal validity using date ranges in PostgreSQL 18.1. I want to place constraints which force the date ranges to be non-overlapping and adjacent (= there are no gaps). ...
Philippe's user avatar
  • 307
-1 votes
1 answer
78 views

I'm trying to execute a prepared statement with two placeholders. The query is the following: CREATE SCHEMA IF NOT EXISTS $1 AUTHORIZATION $2; However, the ...
Thesevs SCUTULATUS's user avatar
Best practices
1 vote
7 replies
102 views

I’m trying to understand why PostgreSQL COPY is much slower than SQL Server BULK INSERT in my scenario (or every scenario?). I ...
Fernando Del Cantão's user avatar
3 votes
0 answers
103 views

I've got this client script: ...
Yot Yot5's user avatar
1 vote
2 answers
76 views

I'm working on a database to store information from .warc files, which are being parsed by a program I wrote in BunJS. The problem is that inserting data into the database takes a long time to insert ...
Logan Rios's user avatar
Tooling
0 votes
10 replies
56 views

What is the Lowest deployment cost programming language for Saas (For Business Software POS, ERP, Inventory Management) Web Applications. With Data Handlings and Reports generations. Database is ...
Sahasra_Kesara's user avatar
Advice
0 votes
2 replies
33 views

I have a log table in PostgreSQL (people_log) that tracks changes in my main tables. The problem is, the log table can grow very large, so I cannot keep all the ...
f.n's user avatar
  • 53
4 votes
1 answer
98 views

We want to migrate an Oracle database with BLOB type for some columns to a Postgres database and to have our Spring Boot application working with it (we use JPA and hibernate). I saw that BLOB from ...
phildeg31's user avatar
  • 401
2 votes
1 answer
91 views

I am starting to learn Symfony 7 and how to use PostgreSQL. I have succeeded in creating a database with PostgreSQL. By adding that in .env: ...
Brunet Pierre's user avatar

1
2 3 4 5
3575