Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
-1 votes
1 answer
156 views

I recently updated a computer that had been running Ubuntu 20.04 to Ubuntu 24.04. On this computer, I have a large postgresql 10 database with postgis 2.4.8 that for various reasons would be hard to ...
David M. Kaplan's user avatar
1 vote
1 answer
263 views

I am trying to perform DELETE and INSERT statements in a trigger function, like BEGIN   IF (TG_OP = 'DELETE') THEN     DELETE FROM…;     INSERT INTO…;     RETURN OLD;   ELSIF (TG_OP = 'UPDATE' OR ...
sanjiv's user avatar
  • 13
0 votes
1 answer
63 views

I have the following table in Postgres 10.4. Name Email EmailType -------------------------------------- John [email protected] Primary Email John [email protected] Secondary Email ...
Vivek Kumar Singh's user avatar
0 votes
0 answers
497 views

My specific problem is that we are unable to restart our postgreSQL database. We have an ubuntu server (release 18.04) with PostgreSQL 10 installed. I commonly revise my IP address in the pg_hba.conf ...
syer's user avatar
  • 1
0 votes
1 answer
978 views

select replace(pol.bundle_product, '''', '"')::json ->> 'display_name' from pos_order_line pol where order_id in ('164568','140750'); i will query json data in postgresql but it shows ...
Admaja's user avatar
  • 69
1 vote
0 answers
44 views

I have a query(Posgres) that looks like this (I replaced fields with * meaning that fields could vary): SELECT * FROM actions WHERE (logs."group"=$1 OR logs."team" IN ($2)) and ...
developer's user avatar
0 votes
1 answer
289 views

I am hitting a problem with index creation across different versions of Postgres. We are upgrading a Postgres database from 10.21 to 14.4. In preparation for this, I've been running our tests on the ...
Kent's user avatar
  • 1,689
0 votes
0 answers
74 views

sql is not my strong point upgrading from postgres 9.6 to 10.6 and I get an error from this query: select CASE WHEN wlh.status_reason_code like '%DR%' THEN concat('RR',...
Iqbal Zuhdi's user avatar
0 votes
0 answers
66 views

I want to create a "demi/sub" super user, which can perform duties as admin user, but shouldn't be able to delete or create Dbs, alter system, but must have all privileges except delete on ...
Alberto B's user avatar
1 vote
0 answers
660 views

Whenever i press up/down arrows, the command history is not getting displayed and whenever i press tab, autocomplete is not happening.
Aravind Ram's user avatar
4 votes
1 answer
797 views

I am trying to add the Prisma DB client to the existing node.js project while preserving the DB structure. Postgresql Prisma 4.7.1 I've set up the initial Prisma configuration (env vars, etc.). I've ...
Boštjan Biber's user avatar
0 votes
0 answers
617 views

We are running postgresql database server running as docker container inside a VM. Postgresql docker image version is 10. Server size is 32 cpus and 256 GB memory. VM Specs : Ubuntu 18.04, Docker ...
Mahesh Babu's user avatar
0 votes
0 answers
58 views

Yesterday I upgraded our Postgres DB from 10.20 to 10.22. I'm using Docker to run the DB, so I just updated the Docker config to run the newer version and kept the same data folder. As far as I know, ...
Travis Lu's user avatar
0 votes
0 answers
146 views

I do not understand the behaviour of the following query: SELECT qs.id_gen::int as qs_i , fi.id_gen::int as fi_i , ABS(qs.id_gen::int - fi.id_gen::...
F__L's user avatar
  • 11
3 votes
3 answers
901 views

We've run into a strange issue with Postgres, initially unearthed as we prepare to upgrade from 10.21 to 11+. What we'd initially thought was a performance regression in newer versions of Postgres ...
Sydin's user avatar
  • 647
1 vote
1 answer
548 views

I have a table that have at least 3 columns : id, type : uuid, primary key number : smallint, can't be null end : timestamptz, can't be null I am using this query : SELECT number AS key, MAX(...
iXô's user avatar
  • 1,193
1 vote
1 answer
931 views

We have a 3 instance cluster in DC and a 3 instance cluster in DR as standby_cluster. For DC-DR real-time sync, we have added the DC cluster's leader's IP as standby_cluster IP in the DR patroni ...
Rahi Shah's user avatar
3 votes
1 answer
467 views

We have a table of intersection names like 'Main St / Broadway Ave' and we are trying to match potentially messy user input (of the form (street1, street2)) to these names. There's no guarantee the ...
raphael's user avatar
  • 2,879
1 vote
1 answer
3k views

I have almost an identical problem as this post: How to migrate a Windows 10 installation of PostgreSQL 9.5.7 to a larger disk I have a PostgreSQL database on my C drive which is running out of space. ...
Jake Lyle's user avatar
0 votes
1 answer
822 views

I have a purge job that runs every day cleaning up some old records. I'm using PostgreSQL 10.21.The table in which it is performing the action have these attributes (the ones that are relevant for the ...
alanhala's user avatar
1 vote
1 answer
850 views

Postgres version: 10 Table example: CREATE TABLE log ( group_id INTEGER, log_begin TIMESTAMP, log_end TIMESTAMP ); My goal: I want to know, for distinct groups, which log began right ...
Marcelo Gonçalves's user avatar
0 votes
1 answer
147 views

We have upgraded our db from version 10.18 to 13.6 and for simple count select I have noticed a different behaviour. Postgres 13.6: explain select count(id) from jobs; ...
Thomas's user avatar
  • 545
0 votes
0 answers
3k views

I have a PostgreSQL database which I tried to start in two different machines (same OS version windows 10) without installing. It is started in one machine without issues (immediately started) but ...
Abimanyu's user avatar
  • 165
3 votes
1 answer
17k views

I'm working with a PostgreSQL server version 10.5 (can't upgrade it at the moment) running in Docker. XL Deploy is connected to it and I upload a new archive that is 232MB. I get the error FATAL: ...
sffortytwo's user avatar
1 vote
1 answer
4k views

I have a system that only supports version 9.1 of postgres and a client (company) has been managing their data with version 10. There are many tables and I need to know if there is a script to ...
Elermino's user avatar

1
2 3 4 5
14