Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
0 replies
36 views

In my case, I only want authenticated users to perform a SELECT query on my database, so I set up my RLS Policy for this scenario. This is where I am hitting an issue. With RLS enabled, I need to let ...
Boon Jefferson Brigoli's user avatar
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
1 vote
0 answers
29 views

I have a table with the follow definition: CREATE TABLE "test" ( id UUID PRIMARY KEY, created TIMESTAMPTZ NOT NULL, description TEXT, permissions TEXT[] ); I want to bulk ...
F21's user avatar
  • 33.6k
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
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
-3 votes
0 answers
49 views

I'm running Docker Compose on Ubuntu 24, and when accessing PostgreSQL from within the backend container, I get the following error: root@60128607c5ab:/backend# psql -p 5433 -U postgres psql: error: ...
andbri321's user avatar
2 votes
1 answer
39 views

Maybe there's an easier way to get the Increment with JOOQ? This one looks more like a crutch: int increment = Optional.ofNullable(CUSTOMER_ID_SEQ.getIncrementBy()) .map(Field::getName) ...
wuttke's user avatar
  • 155
-2 votes
1 answer
110 views

For example, I have this table below, how can I display only the records that aren't in the 10 minutes range. In this example should return the first and last in note examples user_id | ...
Luis's user avatar
  • 2,711
-3 votes
0 answers
66 views

I'm trying to access PostgreSQL from within my backend application using Docker, but I'm getting the following error: User.last #=> There is an issue connecting to your database with your username/...
andbri321's user avatar
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
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
-3 votes
0 answers
48 views

Was trying to create a database (retmarkdb), but only datatabase "postgres" (with password 'retmark123') is created. // RetmarkApp.AppHost/AppHost.cs var builder = DistributedApplication....
Serjeq's user avatar
  • 1
1 vote
0 answers
46 views

I am integrating a Superset dashboard into my web application and need multi-tenant behavior where every client sees the same dashboard layout but only the data that belongs to them. My backend ...
user31893715's user avatar
-1 votes
0 answers
52 views

I am new to supabase I need help starting my supabase server locally I'm working on a project that was initially started with Lovable AI and uses Supabase as it's backend. I recently joined the team ...
MarchMadnessss...'s user avatar
-1 votes
0 answers
29 views

This is the schema in my prisma.schema: generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" url = env("DATABASE_URL") ...
Russel Edullantes's user avatar
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
-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
-4 votes
0 answers
27 views

I'm trying to fully Dockerize my application, which includes: Next.js (frontend) Express.js (backend) PostgreSQL Sequelize ORM for models and migrations my backend can't connect to the PostgreSQL ...
Yazid Khoualdi'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
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 vote
5 answers
86 views

I use Postgres on my web server in order to record incoming queries into a table calls2, basically writing a single row each time with lots of repeating information, such as a date field ("when&...
Thomas Tempelmann's user avatar
1 vote
1 answer
61 views

I'm using a self-hosted TimescaleDB instance to store logs. I have a hypertable logs that is partitioned by the timestamp column. I need to perform a fast lookup query based on the event_key column, ...
Oussama Jmâa's user avatar

1
2 3 4 5
3580