Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

I am trying to improve the performance of the base using the cluster command. For tests, I created copies of the original tables and sorted the data in them by foreign keys, by which the most frequent ...
Сергей's user avatar
0 votes
1 answer
149 views

I have a PostgreSQL 11.22 database, and I need TEXT columns in some tables to be able to store and sort strings in different languages. The encoding is on UTF8, and it works, all different language ...
Iván Flores Vázquez's user avatar
2 votes
1 answer
86 views

I'm running a PostgreSQL 11.22 database, and I want to create a new collation to support the Czech language, since I don't see it on the collations list when I select from pg_catalog. Attempt 1 The ...
IvanFlores's user avatar
0 votes
1 answer
130 views

I have a codebase that relies on a connection to Postgres via a full self-contained connection URL. The Python codebase was working while on PG11 but after switching to PG14 the options in the ...
SkyWalker's user avatar
  • 14.5k
0 votes
0 answers
105 views

Currently I'm using Aurora Serverless v1 which don't supports FDW(foreign data wrappers). I need to setup FDW for some requirement. I just want some ways to tackle this situation. 1.First approach may ...
Alok Kumar's user avatar
1 vote
1 answer
1k views

I have a PostgreSQL 11 streaming (ie. wal_type = replica) cascading replication scheme set up as follows: db1 -> db2 -> db3 What happens to db1 and db3 if I execute a pg_ctl promote on db2? ...
jotadepicas's user avatar
  • 2,511
1 vote
1 answer
97 views

After upgrading PG from 11 to 15, I struggeling with the following situation: old (working) Setup: Postgres 11 PostGIS 2.5 Setup: Postgres 15 PostGIS 3.3 table_1 (~14.000.000 rows) When I do select ...
no11's user avatar
  • 72
2 votes
2 answers
103 views

I have the following table: CREATE TABLE IF NOT EXISTS import.dre ( idmov integer, companynumber integer, idproduct integer, dtdate date, nrtank integer, dailybalance numeric, ...
lamarcondes16's user avatar
0 votes
1 answer
262 views

During the pg_upgrade process, I encountered an error indicating that the "postgres" database is being accessed by other users, with one active session identified. pg_restore: error: could ...
user avatar
2 votes
1 answer
4k views

I have the following (simplified) table examples in a PostgreSQL 11 database: | Column | Type | id | uuid | core_id | character varying(255) | name | character varying(255) Indexes: &...
Rose's user avatar
  • 2,819
0 votes
1 answer
4k views

I'm encountering an error "fe_sendauth: no password supplied" while attempting to run pg_upgrade to migrate from PostgreSQL 11 to 14. I've set up a .pgpass file with the password and ...
user avatar
0 votes
1 answer
130 views

assuming I have json column which look something like: -- first row: { "a": { "x": {"name": "ben", "success": true}, &...
maxwell_rob33's user avatar
1 vote
2 answers
982 views

Our PostgreSQL 11 database has tables A and B. postgres=# \d A; Table "public.A" Column | Type | Collation | Nullable | ...
Mate Varga's user avatar
  • 3,436
0 votes
0 answers
663 views

I have attempted to utilize the PGCONNECT_TIMEOUT environment variable for testing purposes. I've configured this variable to have a value of 2 seconds and subsequently executed my test cases. However,...
user avatar
0 votes
0 answers
83 views

I have a a query which takes too much time on the very first run, and I need help reducing the time. It has too many large tables involved and has an index on all the columns involved in joins/where ...
DN_DBA's user avatar
  • 1
2 votes
0 answers
88 views

Background: Hibernate 6 creates some generated queries different than hibernate 5. In hibernate 5 a query looked like this (simplified): select * from document inner join row on document.id = ...
J. Dieckmann's user avatar
2 votes
0 answers
548 views

We are trying to upgrade our AWS RDS postgres version 11.16 to max allowed latest version 14.4 Now that we are skipping and jumping directly to 14. Is it a good idea? any issues we should look out for ...
Madhu's user avatar
  • 429
0 votes
0 answers
63 views

I have a main table, let's call it A. And a trigger. create trigger my_trigger after insert or update or delete of column1, column2 on "A" for each row execute procedure ...
raduone's user avatar
  • 311
0 votes
0 answers
192 views

We are developing a large application and all our tests are based on a reference Test DB. This test DB is initially loaded by executing different scripts and you can add your own script to add more ...
tibo's user avatar
  • 5,504
1 vote
1 answer
197 views

When trying to create index on remote Azure server (PostgreSQL 11.19 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit) create index test on "Table" using ...
Anton Chaika's user avatar
0 votes
1 answer
981 views

With this schema: CREATE TABLE tag ( tag_id int GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, tag_slug text UNIQUE NOT NULL, tag_name text NOT NULL ); I'm currently using Javascript to generate ...
jrz's user avatar
  • 4,642
-2 votes
1 answer
124 views

I'm trying to insert some columns in a new table and set the ids in another one. I know this can be achieved using the WITH AS statement but I'm curious why it's not working this way UPDATE "a&...
Warix3's user avatar
  • 101
0 votes
1 answer
151 views

I have following tables: CREATE TABLE IF NOT EXISTS auth_user ( id SERIAL PRIMARY KEY, username VARCHAR(30), first_name VARCHAR(30), last_name VARCHAR(30) ); CREATE TABLE IF NOT ...
MsA's user avatar
  • 3,039
0 votes
1 answer
29 views

I am relativly new to SQL and I have a short question. I already searched for similar questions in stackOverflow but I couldn't find anything.I have created some Views. These Views change from one ...
mr_noob's user avatar
  • 19
1 vote
2 answers
2k views

Is there a way to initialize/start/keep running a PostgreSQL DB directly from a Dockerfile? I have the following Dockerfile. # syntax = docker/dockerfile:1.4.0 FROM redhat/ubi8:latest # Install a ...
codenamezero's user avatar
  • 3,119
0 votes
0 answers
121 views

I promoted a Postgres 11.16 RDS cluster secondary to function as a stand-alone database. This caused a significant decrease in the RR’s performance. Digging deeper, when comparing the results of ...
Toaster's user avatar
  • 1,981
2 votes
1 answer
603 views

Trying to upgrade PostgreSQL from 11.20 to 12.15 and hitting the below error pg_restore: error: could not execute query: ERROR: type "abstime" does not exist I do understand that Data types ...
om joshi's user avatar
2 votes
1 answer
665 views

On our DEV workstations we have for test reasons to databases. Origin Database and Test Database, which is "destroyed" after testing. In Postgres 11 we use the CREATE DATABASE with template ...
Mario P's user avatar
  • 23
0 votes
0 answers
326 views

We have a pgsql function that inserts rows into the db based on a complex query. The database is postgres 11, on azure single server (16 cores, 32gb memory). The last problematic run would insert 6000 ...
dube's user avatar
  • 5,069
-2 votes
4 answers
4k views

I need to install postgres server 11 on ubuntu linux. because it is recommended during the installation of postgres-11 and apache-age from source code: i used this command in ubuntu linux sudo apt ...
Muhammad Farooq's user avatar
0 votes
1 answer
72 views

I am having multiple scheme defined, and while table creation I need to add conditional constraint that the constraint should only be added if the table and scheme exists in PostgresSQL. Below is the ...
Ronak Joshi's user avatar
  • 1,583
2 votes
0 answers
1k views

I have an Ubuntu 22.04 machine where I need to install PostgreSQL 11.9 and its client (psql). Psql requires libreadline.so.7 and it is not available in the Ubuntu repositories. Only libreadline.so.8 ...
Salvatore D'angelo's user avatar
2 votes
1 answer
143 views

I'm modifying the function Datum create_vlabel(PG_FUNCTION_ARGS), within Apache AGE. But sometimes it's needed that one of the arguments to this function be NULL, and there's a check to that, like ...
Marco Souza's user avatar
0 votes
0 answers
998 views

I need some suggestion on how to get the data through PostgreSQL JDBC driver from stored procedures using reference cursors. Since PostgreSQL 11, it supports stored procedures with create procedure ...
Ashu's user avatar
  • 169
0 votes
1 answer
1k views

I am trying to create a user mapping in PostgreSQL without a password, but I am encountering an error that says "ERROR: password is required" when I try to access a table. Here is the ...
Aymen Rahal's user avatar
1 vote
0 answers
2k views

I have two virtual machines where one is hosting postgres DB and another application that is connecting to database. I have tried multiple configuration ways, but every time connecting I'm connecting ...
RIP's user avatar
  • 117
0 votes
1 answer
585 views

when i try to upgrade Postgres from version 11 to version 13 using this command: /usr/lib/postgresql/13/bin//pg_upgrade -b /postgresql/11/bin/ -B /postgresql/13/bin/ -d /data/service/postgres.1061/...
Muthu Naaraayanan's user avatar
0 votes
0 answers
332 views

Background I'm using Postgres 11 and pgAdmin4 v5.2. The problem I describe below is on my dev machine which has both the postgres server and pgAdmin client. Questions I've looked at on SO that deal ...
teejay's user avatar
  • 947
0 votes
0 answers
25 views

I know, that it possible to write python code in postgresql with PL/Python Functions. Is it possible to call cmd command from postgresql? I need to use pg_repack, not from terminal as usual, but from ...
yuoggy's user avatar
  • 147
5 votes
1 answer
3k views

I have a user with read-only access in my PostgreSQL 11. How can I give them access to write/edit data in some of the database tables, e.g. Table1 and Table2 only? I don't want them to change the DB ...
Grigory Zhadko's user avatar
0 votes
1 answer
376 views

I am using cimg/postgres as my database image. - image: cimg/postgres:11.12 environment: POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_DB: XXXX POSTGRES_USER: XXXX Then I'd like ...
user16012143's user avatar
0 votes
1 answer
375 views

I use pg_dump to backup and restore to target and manually sync (using setval function) sequences on tables. Is following an option to avoid manual sync or manual sync is always required? pg_dump -s (...
Falcon's user avatar
  • 67
0 votes
0 answers
336 views

I am trying to update PostgreSQL 11.2 to PostgreSQL 14.0. My PG 11 Data directory size is 1.1 GB and my PG 14 data directory is 41 MB before the upgrade. I am now running my below upgrade command: &...
Bala's user avatar
  • 204
0 votes
2 answers
1k views

I have join table between t_table and s_table. there are many to many relationships between them. s_table id s_value 1 1 2 2 3 3 t_table id t_value 1 100 2 200 3 300 t_id_s_id_table s_id t_id 1 1 1 2 ...
tesnirs's user avatar
  • 97
0 votes
1 answer
232 views

I have postgresql-11.17 source code on my windows, followed the installation from the documentation : PostgreSQL-11 Documentation but when I run the command ./pg_ctl -D /usr/local/pgsql/data -l ...
Matheus Farias's user avatar
0 votes
1 answer
378 views

Im using a C# query that automatically uses the date_trunc with timezone function, however when trying to run the function in postgres it doesnt work. I receive this error: ERROR: function date_trunc(...
TheProgrammer's user avatar
0 votes
1 answer
179 views

I start to use dblink on my postgreSQL 11 db and I have a problem with grant. I can create server and user mapping as superuser , but also I can delete this user mapping and server as usual user. I ...
yuoggy's user avatar
  • 147
1 vote
1 answer
2k views

Is there a way in PostgreSQL 11.2 to log the duration only for the slow queries? If I set log_duration=off log_min_duration_statement=2000 The slow statements are logged, but I have no idea how long ...
Edigest2's user avatar
1 vote
1 answer
1k views

I have 2 databases : dbprod and dbdev, with 2 users uprod and udev. What I'd like to do is to copy the production database to my development database. I succeeded to restore my database, but for some ...
0xPunt's user avatar
  • 321
1 vote
1 answer
948 views

I have an RDS instance running Postgres 11.16. I'm trying to upgrade it to 12.11 but it's giving me errors on PostGIS. If I try a "modify" I get the following error in the precheck log file:...
Shawn's user avatar
  • 416

1
2 3 4 5
12