Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
117 views

A process is trying to ALTER a table (to set default column value) in a workflow. It is getting blocked due to postgres auto-vacuum process not releasing a lock (It might be holding a ...
Yashodhan Agnihotri's user avatar
0 votes
1 answer
62 views

The task is as follows - it was necessary to connect to an existing DB that has read access to a certain schema with multiple tables. I am trying to connect to one of the tables (I repeat, only read ...
Vaagn Akopyan's user avatar
0 votes
1 answer
209 views

I am in the process of pg_repacking a huge table (13TB). Following is the info for my setup: pg_total_relation_size (Including indexes) - 13TB pg_table_size - 4TB pg_repack version - 1.4.7 Postgres ...
P_Ar's user avatar
  • 449
2 votes
0 answers
49 views

I have a huge table with a primary key and a btree_gist index. After some years of operation, the performance of selections went constantly down. I assume the gist index is fragmented. When reindexing,...
paul's user avatar
  • 478
-1 votes
1 answer
246 views

I have a database of sufficient size that it does not fit entirely in RAM, including indexes that also exceed RAM capacity. When performing queries, I observe significant differences in processing ...
Doe Jowns's user avatar
  • 302
0 votes
1 answer
421 views

We're using RDS with PostgreSQL engine v12.17 and integration with Datadog. We have multiple databases and have multiple custom queries for these databases. Currently, there is a lot of duplication, ...
Piotr Rzepkowski's user avatar
1 vote
1 answer
160 views

I have postgres 12.18 installed on my Centos 6.9 OS (I know it's too old). I want to upgrade to postgres 14.9, is it possible ? I am trying to install postgres 14 but getting lot of issues. sudo yum ...
Mritunjay's user avatar
0 votes
0 answers
140 views

I have a requirement to route the incoming query to respective DB instances. I'm new to managing Databases. eg: I have 4 Postgres RDS. say rds_master, rds1, rds2 and rds3 rds_master contains schema ...
Kabilan Ravi's user avatar
1 vote
0 answers
56 views

I have a table as create table my_table(created timestamp); The value which I want to insert is - 1706812200000 But it is in milliseconds. I want to convert it into 2024-04-30 16:48:02.079519 format. ...
Neha Kumari's user avatar
0 votes
2 answers
196 views

I've created a backup of a database on one computer postgres@machine1$ pg_dump mydb > mydb.dump.sql and then, from a second computer, having created a mydb database, I restore it from the dump ...
twisted's user avatar
  • 812
0 votes
1 answer
159 views

After migrating database data from Postgresql 9 to GCP cloud sql PostgreSql 12, the query shown here is failing with this error: “UNION types integer and text cannot be matched” Query: Select c1, c2,...
user3737851's user avatar
0 votes
1 answer
1k views

I lost the admin user's password and reinisilazing with an email did not work (i did not receive an email). so i would like to use PgAdmin to create a new user with admin privileges to access Odoo ...
Adel's user avatar
  • 61
1 vote
1 answer
141 views

$: select id from vehicles limit 5 offset 45 -- Returns -- 735 -- 736 -- 737 -- 738 -- 739 $: select id, state from vehicles limit 5 offset 45; -- Returns -- 1381 | new -- 1327 |...
shajin's user avatar
  • 3,264
0 votes
0 answers
63 views

when I connect to the PostgreSQL Database from localhost then sometimes it gives Error: Server Closed the connection unexpectedly although when execute the command again immediately then connection ...
Jaikaran saini's user avatar
0 votes
0 answers
58 views

I have table document with ~2.5 millions rows and more than 100 columns. I provide only used in query columns: CREATE TABLE document ( id serial PRIMARY KEY, organizationid INTEGER, status_1 ...
Bunny Boss's user avatar
-1 votes
1 answer
70 views

Simple table in PostgreSQL 12.3 create table aaa(id integer, data json); In data column stores JSON with the following form: {     "foo": 1,     "persons": [         {             ...
JD_UA's user avatar
  • 53
0 votes
0 answers
457 views

When checking pg_stat_bgwriter in postgres, I am noticing that there is a difference between buffers_alloc and the sum of buffers_backend, buffers_clean and buffers_checkpoint. What could be assumed ...
leas's user avatar
  • 301
0 votes
0 answers
87 views

I have tables that are basically as follows: CREATE TABLE persons ( person_id serial primary key, parent_person_id int REFERENCES persons (person_id), person_name text ); INSERT INTO ...
M. Andersen's user avatar
0 votes
0 answers
274 views

I have two servers A and B, server A is the publisher for table with primary key sequence. Before i switch to server B, I update the sequence in server B to be same as server A. Then I do the failover ...
Yassin Shanwany's user avatar
0 votes
1 answer
1k views

I have a strange situation in my PostgreSQL server. I have the below idle query that keeps running in all databases in the server. datid | 1029662 datname | ganar pid |...
Taha Adel's user avatar
-1 votes
3 answers
127 views

Consider the following example: There are 3 tables: clients (1) -> (n) orders (1) -> (n) order_updates. I want to update clients based on the corresponding order_updates with JOIN (which ...
souslov's user avatar
  • 44.7k
-1 votes
1 answer
2k views

I want to search for a string that is inside of a column of some table. The system has about 200 tables. I need to search all columns of all tables to achieve what I want. Is it possible in Postgresql ...
Diego Alves's user avatar
  • 2,697
0 votes
1 answer
90 views

I am currently using PostgreSQL 12.11 and have a view called previous_customers with the following definition (extracted from DDL): CREATE VIEW previous_customers(customer_id, alumni) as SELECT ...
Silas Maughan's user avatar
1 vote
1 answer
703 views

ERROR: query failed: ERROR: cannot update table "table_123" because it does not have a replica identity and publishes updates HINT: To enable updating the table, set REPLICA IDENTITY using ...
MANJULA KURAPATI's user avatar
1 vote
0 answers
361 views

I am trying to use the copy command in postgres to upload the CSV file into the database using the below command psql -h 127.0.0.1 -d target -U postgres -c "\copy test FROM 'E:\pg_test\test.csv' ...
Karthick88it's user avatar

1
2 3 4 5
13