1,830 questions
0 votes
0 answers
60 views
SequelizeEagerLoadingError: ModelA is not associated to ModelB (intermittent in multi-schema setup)
I'm using Sequelize v6.37.5 with PostgreSQL in a multi-tenant architecture, where each tenant has its own schema. Models are defined once globally, and we use .schema(schemaName) to access tenant-...
-1 votes
1 answer
66 views
PostgreSQL Pagination Issue: (createdon, id) > (...) Condition Not Skipping Duplicates
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 ...
0 votes
0 answers
85 views
Tracking Events in PostgreSQL: Does It Have a Profiler?
I have worked with Microsoft SQL, and it was very easy to find the tables and stored procedures that were being called when an event occurred in the application. It helped a lot in identifying the ...
1 vote
1 answer
70 views
Aliasing conditions in Postgresql
So I am new to Postgresl and am trying to get familiar with nested queries and how they work as there seems to be some conditions that add to what intuition seems to tell me. I learned, at least I ...
1 vote
1 answer
155 views
How to set replica identity full for a table having different owner?
I have two owners in my postgresql database e.g. testdb, I have some tables of owner1 and some tables of owner2. I am facing issue in setting replica identity full for tables of owner1 using owner2 ...
0 votes
1 answer
49 views
How to handle number of queries that need to be run hourly
I have a usecase where my workers have run about ~100 queries at an hourly cadence. I don't want to have 100 individual lambdas run each of them separately as the count of queues may increase in the ...
1 vote
1 answer
363 views
Mixing of ? parameters and other forms like ?1 is not supported Postgres
I am trying to create a native query using spring JPA for the below query. I am trying to filter the data where the jsonB contains the filtered key. select * FROM targeted_event_catalog e WHERE e....
0 votes
0 answers
68 views
PostgreSQL server using SSL via Python - Unable to Execute DML comands
I can do SELECT on a table in a PostgreSQL database (hosted on a secure server) via Python using a SSH connection. But when I try to do INSERT or CREATE on the database, I get the following error: ...
0 votes
1 answer
85 views
Select only distinct values from two tables on pgadmin without getting all combinations
I have two tables. table 1 Column A Column B rgz 1 dry 1 vgy 2 chy 3 pom 2 table 2 Column C Column D tuv 10 tuv 11 chx 22 lmn 34 I want the following result shown on data output of postgres PgAdmin ...
1 vote
1 answer
421 views
AWS_S3 Extension in Aurora PostgreSQL
What are all the file formats are supported in AWS_S3 Extension (Import and Export). In AWS documentation its mentioned as CSV,TXT and Zip. Does it support any other Format? Can we have any other ...
1 vote
0 answers
39 views
How can I do weekly tracking in the log table?
I have a log table in which I keep user login records. CREATE TABLE public.login ( id bigint NOT NULL, copy_id bigint, create_date timestamp without time zone, version integer NOT NULL DEFAULT ...
0 votes
1 answer
99 views
How to show rows that has null value
So i have this code WITH gaji_kat AS ( SELECT *, CASE WHEN income < 20000 THEN 'Gaji Rendah' WHEN income > 50000 then 'Gaji Tinggi' ELSE 'Gaji Rata-rata' END ...
0 votes
2 answers
336 views
Can Windows "Compress contents to save disk space" folder option yield PostgreSQL erratic behavior?
I'm maintaining an old PostgreSQL-based application (PostgreSQL 9.1.22) on a Windows 2012 Server and we have noticed some data integrity inconsistencies. No errors have been spotted in logs nor in the ...
1 vote
1 answer
231 views
Fetch table names using regexp
Need to fetch tablename from input using sql query.I know this can be done through regex but not sure how hence any help appreciated Input: Field1 field2 a INSERT INTO test.table2{ name, age, city, id}...
0 votes
0 answers
91 views
Postgres sort order results in different orders for different clients
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 ...