Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

I am using PostgreSQL 18.0 and I have written a function with default parameters which inserts movie into the table. However, when I add the argument which must be added, it gives error: SQL Error [...
Beliz Yazici's user avatar
1 vote
1 answer
69 views

I have a regression test for a PostgreSQL database that checks to make sure a particular user cannot self-assign additional privileges to a particular schema. I do this by logging in as the user "...
Erik Knowles's user avatar
  • 1,015
-2 votes
0 answers
21 views

I learn this on github forum, others devs are having the same problem since prisma uptade to 7.0.0 version. Font: https://github.com/prisma/studio/issues/1363
Samuel Ferreira's user avatar
0 votes
1 answer
42 views

Description I am using a test Postgres container (from testcontainers) for more accurate integration tests. To prevent repeating code, I want to use my existing SQL migration files to setup the ...
rc07jnr's user avatar
  • 67
2 votes
1 answer
47 views

I need to store some store hours that exist in different time zones and may be interacted with in different timezones through an admin portal where it will display store time and local time. I know ...
NoxSicarius's user avatar
2 votes
1 answer
50 views

Hoping to get yalls help on the issue I am now sort of desperate about Context: I am deploying a docker container on EC2 Ubuntu, where it is used by two images - one for my Prisma-NestJs-based API and ...
groove_of_course's user avatar
-1 votes
1 answer
64 views

I have implemented this code to add a check constraint after creating the table ALTER TABLE recruitment_data.candidate_experiences ADD CONSTRAINT chk_experience_dates CHECK ( ...
Beliz Yazici's user avatar
4 votes
3 answers
145 views

I'm 100% new to Regex so I've been floundering about on regex101 trying to figure out how to get my desired output. I am using PostgreSQL to write a query to extract a set of values from the string. ...
snicksnackpaddywhack91's user avatar
2 votes
1 answer
45 views

Symfony/Doctrine: PostgreSQL Migration Issue – Undefined column error only in HTTP Kernel (CLI works) I'm working on a Symfony 7.3 project running on PHP 8.2. I recently migrated the database from ...
Juergen Schulze's user avatar
2 votes
1 answer
80 views

Suppose I am implementing a local Event-Driven service with internal events to decouple logic. For database we use Postgres 17 and PgBouncer with transactional mode. It's just a single instance. ...
Mikhail Shulga's user avatar
1 vote
1 answer
112 views

I have a table test with two columns, each referencing the other ID1 ID2 2 1 3 2 4 3 5 4 Given an id, I need to traverse the chain to return all the rows traversing the chain. Below is the query I ...
sg2000's user avatar
  • 325
1 vote
1 answer
75 views

I have the following SQL to create a materialized view and the SQL seems reasonable to me but it's unclear from Postgres docs what should happen in this case. I am listing the columns when creating ...
Byofuel's user avatar
  • 448
1 vote
1 answer
94 views

I'm trying to get partitioned tables from a postgres DB. Our partitions have the date in them in various formats which I'm extracting like this SELECT tab.relname AS table_name, (CASE ...
DatabaseShouter's user avatar
Best practices
0 votes
6 replies
102 views

End Objective Download some data from the internet (about 5 GB in size) Possibly convert some strings/datetimes Upload to Postgres database I have written some code which uploads some data to a ...
user2138149's user avatar
  • 18.6k
Advice
1 vote
2 replies
71 views

I am currently working on recommendation for aws rds instance type recommendation. We have identified the instances which are underutilised. I want to know how to recommend a better version of rds ...
Chetan B B's user avatar
1 vote
0 answers
45 views

I've been struggling for two days with a PostgreSQL enum type issue in Entity Framework Core. Despite all my configuration, EF Core keeps trying to send a string (`text`) to an enum column. The ...
Мирон Никитин's user avatar
-1 votes
1 answer
38 views

I have written a minimal test example to try and debug some issue I have been having where COPY does not appear to do anything when used to copy data to a postgres database. This is my Python code: ...
user2138149's user avatar
  • 18.6k
Advice
1 vote
3 replies
38 views

I run periodic VACUUM FREEZE on my main database to avoid aggressive vacuuming during busy times, wondering if it's safe to run freeze on template databases too before they reach the threshold (200M ...
Ali's user avatar
  • 7,577
1 vote
0 answers
73 views

I don’t understand why this is happening. I’m using the Go database package to connect to a PostgreSQL database. I loop through fullmsg (88 messages), but after processing about 27 messages, ...
CyberCr0w's user avatar
Best practices
0 votes
3 replies
55 views

So I have a function that I used to compare audio fingerprints with a few thousand audio fingerprints stored in a postgresql. What I did basically was: def my_function(cur: Cursor, threshold: ...
d6u9d12e's user avatar
-4 votes
1 answer
50 views

I have a Rails 8 application using an attached dev database and I am deploying to the Digital Ocean App Platform. I can successfully build the application and when I get to the deploy step I see this ...
wuliwong's user avatar
  • 4,390
-3 votes
0 answers
19 views

When writing SQL queries against a large PostgreSQL database, I am seeing phantom reads despite setting the transaction isolation level to READ COMMITTED. Can you provide a concrete example of a multi-...
Awais Khan's user avatar
0 votes
3 answers
74 views

I was learning postgres with flutter, and my app kept crashing when I tried to connect to the database. The database is a postgres db running on a docker container. Here is the Dockerfile FROM ...
lifeashansen's user avatar
0 votes
0 answers
65 views

I’m trying to migrate data from MS SQL Server to PostgreSQL using PGLoader, but I’m running into an issue when the source table contains newline characters in a VARCHAR column. Here’s my test setup: ...
BSTech's user avatar
  • 1
1 vote
2 answers
63 views

I have a PostgreSQL cluster with 1 primary and 1 streaming-replica standby. Occasionally I get the following JDBC exception on the primary node, not the standby: SELECT \* FROM orders WHERE id IN (?) ...
offenbach's user avatar

1
2 3 4 5
3580