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

Considering the following SQL code: create table test (a int, b int) ; create type tst as (a int, b int) ; create function tst (a int, b int) returns tst[] language sql immutable as $$ select array(...
Edouard's user avatar
  • 7,129
0 votes
2 answers
198 views

I'm trying to create a logical replication slot on a GCP managed PostgreSQL 17 read replica but getting intermittent failures with two different errors. The replica was recently upgraded from ...
pramod's user avatar
  • 193
1 vote
0 answers
165 views

I am running PG 17.5 Windows using the EDB community distribution. I am using Entity Framework ORM with Devart's dotConnect for PostgreSQL. The issue I am about to describe did not occur under PG 13....
sevzas's user avatar
  • 841
4 votes
2 answers
145 views

I am using PostgreSQL 17 (with PostGIS extension) installed on a Ubuntu 24.04 system. I have a very strange problem where a certain query works as a straight query (or to create a table), but the same ...
David M. Kaplan's user avatar
3 votes
3 answers
163 views

I have a table containing incident ids. Each incident can be linked to another one because they have been stated as similar. The table contains two columns: incident_id the id of the incident ...
Leyth's user avatar
  • 701
0 votes
1 answer
78 views

I tried to create an immutable CONCAT(). For this, I tried to use the following SQL queries. Option 1 CREATE FUNCTION immutable_concat(VARIADIC text[]) RETURNS text LANGUAGE internal IMMUTABLE ...
Ivan Yuzafatau's user avatar
0 votes
1 answer
215 views

While migrating database from Oracle to PostgreSQL, I came across "Global Temporary Table" which I need to migrate equivalent to PostgreSQL. Document say's Optionally, GLOBAL or LOCAL can ...
MAK's user avatar
  • 7,355
0 votes
1 answer
221 views

I detected several indexes that need reindexing, then I created a simple script to call REINDEX CONCURRENTLY for them reindex index concurrently public."chp_id2015"; reindex index ...
aseques's user avatar
  • 670
0 votes
0 answers
20 views

I am trying to uninstall postgres but it is showing that it is open in another folder how to find that folder? I am just trying to uninstall it so I can config it with my odoo server for database ...
gaurav vishwasrao's user avatar
1 vote
1 answer
80 views

I am using Postgres's pg_trgm for finding similarity of alphanumeric text based on trigram matching. The text being searched on is a title column containing various titles of news articles. SELECT ...
sudoExclamationExclamation's user avatar
1 vote
3 answers
207 views

I can remove easily the first element from an array: SELECT (ARRAY[1,2,3])[2:]; {2,3} What is the simplest way to remove the last element as well? The size is dynamic and is not known at compile time.
Ludovic Aubert's user avatar
1 vote
1 answer
53 views

I have an array of tuples in PostgreSQL 17. I couldn't get SELECT...INTO...FROM to work for some reason: SELECT ARRAY[(1,2)] AS a INTO temp_table; ERROR: column "a" has pseudo-type record[] ...
Ludovic Aubert's user avatar
0 votes
0 answers
30 views

I'm doing a basic Python Flask application with a Postgres database using psycopg2. I'm having trouble setting up the user registration password hash as it appears I'm working with a string vs byte ...
jazzmasterkc's user avatar
3 votes
2 answers
120 views

I have prepared a DB Fiddle for my question and I will also show my complete code below - I am trying to store data in a vehicle_data table and each data record has an expires_at column: -- Create ...
Alexander Farber's user avatar
-2 votes
1 answer
109 views

I need to migrate a PostgreSQL database (~5TB in size) from version 13 running on Oracle Linux 7.9 to version 17 running on Ubuntu 24. The database includes critical data and downtime must be ...
Pramod Vinay's user avatar
1 vote
1 answer
83 views

Can multiple WHEN MATCHED AND ... conditions be activated within a single SQL MERGE? MERGE INTO translation t USING ( SELECT d.iddiagram , rt.uuid_translation , rt.context ...
Ludovic Aubert's user avatar
1 vote
1 answer
2k views

2 weeks after migrating to Postgres 17.2 we started getting an error on a query that worked flawlessly for years on Postgres 14. I suspected this could be related to the configuration parameters of ...
NicolasZ's user avatar
  • 1,047
2 votes
2 answers
600 views

How to install Citus extension for postgresql-17? I have been looking for it on many search portals. My intention is to install Citus extension for Postgres-17 version, any help much appreciated. I ...
David's user avatar
  • 31
2 votes
1 answer
466 views

Is something like this possible without having to use WITH? Can CREATE TEMP TABLE temp AS be used instead of creating the temp table manually? CREATE TEMP TABLE temp ( action text, winery_id ...
Paul's user avatar
  • 119
5 votes
1 answer
4k views

Installed PostgreSQL 17 from https://www.enterprisedb.com/downloads/postgres-postgresql-downloads. Switched off postgres 13 and 17 Windows services. Gave read and write permissions to both bin and ...
Nikhil Ramabhadra's user avatar
17 votes
4 answers
54k views

I am using psql with a PostgreSQL database and the following copy command: \COPY isa (np1, np2, sentence) FROM 'c:\Downloads\isa.txt' WITH DELIMITER '|' I get: ERROR: extra data after last expected ...
Superdooperhero's user avatar