Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
65 views

I am implementing pagination in PostgreSQL using the (createdon, id) > (...) condition to fetch the next batch of records. However, I am facing an issue where records with the same createdon ...
Akshay Bande's user avatar
  • 2,605
1 vote
1 answer
101 views

I am an SQL server developer working on a project in a PostgreSQL environment. I am having some PostgreSQL syntax issues. I am working off version 9.3. In a given table, I am trying to set every 10 ...
Peter Sun's user avatar
  • 1,943
-1 votes
1 answer
47 views

Please help me with a difficult task I have a table that contains payments by date, for example: date sum 2023-11-01 1 2023-12-01 2 2024-02-01 1 I need to find the minimum amount for the last 2 ...
Noname's user avatar
  • 21
0 votes
1 answer
77 views

Trying to run sql : https://dbfiddle.uk/VlKz_7fg When I am running sql on fiddle its working fine, however when I am trying to run the same on my database it is throwing - ERROR: invalid regular ...
Ram's user avatar
  • 287
0 votes
0 answers
91 views

Azure DB for Postgres flexible server I have Azure DB for Postgres flexible server. I have created a database in this server with en_US.utf8 collation. In this database I have created a table with ...
P Suresh's user avatar
0 votes
1 answer
36 views

I'm not so good with SQL I have three tables agencies, modules, documents. Modules and documents belongs to company. I want to select a company with all the information and aggregate by status: select ...
perusopersonale's user avatar
0 votes
2 answers
306 views

In mysql when I enter the following mysql -u root -p Password: enter password successfully I then get into my local server and from here I can view all my databases using SHOW DATABASES. But when I ...
Bop 1ABot's user avatar
1 vote
1 answer
36 views

I combined a script to create tables with the same columns and lengths in a loop. The problem is that I want to create them in a specific schema, but I can't pinpoint it. They are currently being ...
amilyramos's user avatar
0 votes
1 answer
880 views

I am having this issue very frequent now. The temp fix is to delete everything and install again. But as soon as i close pgadmin this issue comes again. Anyone knows a solution to this in macos?
nabiharaza's user avatar
0 votes
0 answers
22 views

The issue with accessing tableau dashboards whenever we trigger a batch job that uses the pg_advisory_xact_lock function I have a parent schema named "Customer", every day a batch job gets ...
Rajasekar's user avatar
0 votes
1 answer
177 views

While I was trying to connect my flask app with postgresql I was getting the following error which says I don't have the libpq.5 the error log as follows Traceback (most recent call last): File "...
Noel S Jacob's user avatar
0 votes
1 answer
719 views

I Have a PostgreSQL database, there's a table named "labels". Inside labels there's a column named "label" with a lot of values with the format 3 letters "GCS" and then ...
Pablo Mazzara's user avatar
0 votes
0 answers
183 views

I need to identify the table and particular columns which are not used and not updating by the app. based on the analysis we need to migrate db. we tried to run queries but not getting the result that ...
Jayant Gupta's user avatar
0 votes
1 answer
131 views

Convert column value into CSV in SQL:
Raunak's user avatar
  • 13
1 vote
1 answer
2k views

Does sqlalchemy ORM locks tables while update/insert operation with postgresql. I am trying to make sure that if i run a cron script which is based on python. I am not using 'begin()' with 'with ...
gautam thakur's user avatar
0 votes
0 answers
99 views

I am trying to dockerize my app, so I build a Dockerfile with the script below: FROM node:18.12.1 WORKDIR /usr/src/app COPY package*.json ./ RUN npm i -g npm@latest RUN npm install # If you are ...
Abdulrhman Laswi's user avatar
1 vote
1 answer
1k views

I am planning to use citus to store system logs for upto n no of days after which they should be deleted.Citus columnar store looked like the perfect database for this until I read this where its ...
Raj Patil's user avatar
0 votes
0 answers
362 views

I want a query for storing the data from an array in multiple rows with same id using typeorm postgres in nestjs. Note: I'm using one-to-many, many-to-one relationship for storing data. like a user ...
Dheeraj Kumar's user avatar
1 vote
0 answers
3k views

We have the update query inside the transaction block with the exception block. Shown below: do $$ begin update dbo.myTable set name = 'Table Name' where id = 47; commit; exception ...
Mayank Gupta's user avatar
0 votes
1 answer
951 views

The context is we are migrating a large amount of data from a single tenant to a multi-tenant, so the need for querying. We want to fetch the data in batches so we can pass it to the destination ...
OptimusPrime's user avatar
1 vote
2 answers
292 views

I have the next Tree Structure : This structure is represented in the database with the next Table: --------------------------------Employees------------------------------------------- --------------...
user avatar
1 vote
2 answers
156 views

I've inherited a PostgreSQL database backup that was created with a version around 9.3. During the restore I'm getting the following error: "[archiver (db)] could not execute query: ERROR: ...
scottctr's user avatar
  • 833
0 votes
1 answer
60 views

I need take the id of anexo an then the result id list insert in another table with new_id as(INSERT INTO clienteproveedor.anexo ( codigo, estado, facturar, ...
Darayne Perez's user avatar
0 votes
0 answers
679 views

i have tried to load my dataframe to postgresql and especially to the server postgresql 14( i have 2 servers postgresql 9.3 running on port 5434 , and the other one is postgresql 14 running on port ...
The Legendary YELLOW's user avatar
3 votes
0 answers
1k views

I'm new to PostgreSQl. I'm trying to add new values to type if type exists: ALTER type ProcessStatus ADD VALUE IF NOT EXISTS 'Processing'; Above query will add 'Processing' to type ProcessStatus, but ...
reddy's user avatar
  • 101

1
2 3 4 5
34