Skip to main content
1 vote
2 answers
99 views

How does create or replace function in PostgreSQL 14 behave with respect to transactions? If there are multiple concurrent transactions running at read committed isolation level, and trying to create ...
Aliaksei's user avatar
  • 1,038
0 votes
1 answer
121 views

After our provider upgraded our pg-14 database from 14.17 to 14.19, with timescaledb extension 2.5.2, our app completely broke because of awful database performances. Our analysis showed that the ...
7hibault's user avatar
  • 2,479
0 votes
0 answers
45 views

I am encountering a puzzling issue in Hibernate (with PostgreSQL backend) and would appreciate confirmation or correction of my understanding. Context: I have a method that runs a couple of scalar ...
TechniQ3's user avatar
0 votes
0 answers
51 views

I am setting up SSL encryption for PostgreSQL replication and have the following configuration: PostgreSQL Version: 14.3 OpenSSL Version: 3.1.0 Configuration Details: I have enabled encrypted ...
manasa's user avatar
  • 41
0 votes
0 answers
35 views

I'm trying to use prepared statements with PgBouncer v1.21 in transaction mode for PostgreSQL 14.3. While enabling prepared statements via PgBouncer, I followed this blog and used the sample code ...
manasa's user avatar
  • 41
0 votes
0 answers
265 views

I set max_prepared_statements = 1 in PgBouncer and attempted to create multiple prepared statements within a single transaction. Expected Behavior: PgBouncer should either prevent more than one ...
manasa's user avatar
  • 41
0 votes
1 answer
111 views

I'm able to create a schema via the command line using CREATE SCHEMA test_schema;. However, running the following code doesn't create a schema: from sqlalchemy import create_engine from sqlalchemy....
Jossy's user avatar
  • 1,121
1 vote
1 answer
228 views

I'm trying to completely uninstall and then reinstall a clean version of postgresql via homebrew. Following various SO and other guides I've run the following commands to clear out the existing ...
Jossy's user avatar
  • 1,121
0 votes
0 answers
106 views

I have a database located in default tablespace named "pg_default". Due to space limit in directory, I need to alter tablespace of my database to new custom tablespace. How I can do that ? ...
Nodirali's user avatar
1 vote
2 answers
86 views

I have the table with 10TB of data. I want to perform the COUNT(1)/COUNT(*) to check the EXACT COUNT between main table and archive table. I tried following SQL's but didn't get optimal solution, ...
MAK's user avatar
  • 7,345
0 votes
3 answers
91 views

Given min and max dates are: Min date: 2023-06-19 09:54:23.000 Max date: now()::timestamp(0)-interval '1 year' Expected output: start_date end_date --------------------------------...
MAK's user avatar
  • 7,345
0 votes
1 answer
50 views

I'm learning postgresql and am trying to create a function. I have code like this: create or replace function test_function(current_uncertainty float, last_updated timestamp, min_uncertainty float) ...
Joshua Augustinus's user avatar
1 vote
1 answer
78 views

When doing bulk inserts is it possible to insert into two separate tables and add the relationship? So I have something like this: create table collector ( id int4 generated by default as identity ...
Gargoyle's user avatar
  • 10.5k
1 vote
1 answer
89 views

I have a table with a column itemsIds containing an array of ids. I have created a gin index for that column. I'm trying to find rows that don't contain an element with the following query: select * ...
Juan Cruz Grethe Borsani's user avatar
2 votes
0 answers
126 views

I have some large tables in my database that I need to perform a FULL VACUUM but keep getting out of memory error. I am not sure what is the problem. Memory parameters: -free -g = 23 -shared buffer = ...
Juvette M's user avatar

15 30 50 per page
1
2 3 4 5
22