Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
121 views

I'm using postgres 16, and I have a number of tables where I need to treat their display ID columns as case insensitive, and also handle LIKE queries with wildcards (ex: P%123%). In order to handle ...
Kevin's user avatar
  • 1,881
0 votes
0 answers
55 views

I'm not really sure what's the issue here. I wrote a rather "generic" docker-compose.yml for Postgres, but neither won't it do its own setup properly, nor can any of the other containers (...
Qohelet's user avatar
  • 1,661
3 votes
1 answer
71 views

I am trying to do some transaction management in calls invoked by dynamic sql (EXECUTE). The following works: CREATE or replace PROCEDURE transaction_test1() LANGUAGE plpgsql AS $$ DECLARE r RECORD; ...
Peter Rilling's user avatar
0 votes
0 answers
84 views

This is the 2nd time this has happened to me in a few months. The first time was with Postgres 14, and this time with 16. I can't make any sense out of this. If I query, the account_token, then paste ...
jstafford's user avatar
  • 418
1 vote
1 answer
41 views

When I use the MERGE INTO statement in PostgreSQL 16 with the WHEN MATCHED THEN UPDATE SET option, will a transaction log only be created on difference, or even if it's the same value? Specifically, ...
Gargoyle's user avatar
  • 10.5k
1 vote
1 answer
95 views

I need to upsert a row by primary key and return the previous value before the update. I know I could do this with two separate queries — a SELECT followed by an INSERT ... ON CONFLICT ... DO UPDATE, ...
Andrey's user avatar
  • 13
-1 votes
1 answer
107 views

I got this error when im trying to get access to my postgreql db by pgAdmin. [tag:connection failed: :1), port 5432 failed: could not receive data from server: Connection refused] Run this brew ...
Mikayel Dadayan's user avatar
2 votes
1 answer
82 views

We are running a PostgreSQL 16.2 server on a dedicated physical machine with local storage. This database has been stable and fast for years. We started seeing significant and increasing slowdowns on ...
elliotta's user avatar
0 votes
1 answer
61 views

I am getting this error when exiting my application. I am using delphi 7 with ZEOSLIB 8, PostgreSQL database ver 16. The Delphi statement I use for loading blobs from database into bitbutton blobs is ...
Johan Bresler'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
1 answer
658 views

I was recreating my database with fresh test data, so I dropped / created it. I installed Postgres 16 / postGIS 3 successfully on Ubuntu 22.04 a month ago, but then after I dropped my database, the ...
John Fruncek's user avatar
0 votes
0 answers
62 views

I have this very strange behavior using pglite (PostgreSQL version 16) in Firefox, where I run an UPDATE JOIN, and then a SELECT which the first time around doesn't reflect the change made by the ...
Ludovic Aubert's user avatar
1 vote
4 answers
226 views

In PostgreSQL, I am trying to have SQL which orders by multiple columns. The first column will always be priority DESC NULLS LAST. The second one needs to be dynamic based on some conditions (for ease ...
sudoExclamationExclamation's user avatar
0 votes
1 answer
97 views

I'm playing with Postgresql ENUM types, and noticed something I can't find explanation for: Schema | Name | Internal name | Size | Elements | Owner | Access privileges | ...
Greg's user avatar
  • 6,791
0 votes
1 answer
604 views

Happy Friday, fellow IT people! I am creating infrastructure for Azure Postgres flexible server along the roles required for authentication via terraform. Below is the contents of my main.tf file: ...
Evgenii Fedosov's user avatar
1 vote
1 answer
455 views

Does Postgresql allow use of cte as source of the MERGE instruction ? CREATE TABLE IF NOT EXISTS graph ( idgraph SERIAL PRIMARY KEY, from_table varchar(128) ); WITH cte2 AS ( SELECT 'tag'...
Ludovic Aubert's user avatar
0 votes
0 answers
167 views

I am trying to execute a pg_dump command from PostgreSQL using a stored procedure. My setup uses EXECUTE format to dynamically construct the command. Here is the relevant code: 'COPY (SELECT 1) TO ...
codeanonym's user avatar
0 votes
3 answers
2k views

I have an postgres 16 DB in Docker container with volume. I wanted to hide standard postgres user and changed it's name to super (as example). Now I try to make something with any tables (DDL ...
Alexander Plekhanov's user avatar
1 vote
1 answer
166 views

I have two owners in my postgresql database e.g. testdb, I have some tables of owner1 and some tables of owner2. I am facing issue in setting replica identity full for tables of owner1 using owner2 ...
Neeraj Kumar's user avatar
1 vote
0 answers
356 views

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [org/springframework/boot/autoconfigure/flyway/...
felix9ia's user avatar
1 vote
1 answer
222 views

I am following the AWS's documentation to setup pgactive extension and have an active-active setup on two AWS RDS Postgres instances. Following all the steps successfully till step 11 where it asks to ...
P_Ar's user avatar
  • 449
1 vote
1 answer
67 views

Basically as the title says, I'm trying to figure out if the order of elements in the array in pg_prepared_statements.result_types is guaranteed to match the column order of the results when you do ...
jrgilman's user avatar
  • 483
0 votes
1 answer
176 views

Iam using PostgreSQL 16 and running the following query. select (current_timestamp AT TIME ZONE 'UTC'); which is returning UTC time without timezone appended. 2024-10-04 18:44:59.34674 How to ...
Bhanu's user avatar
  • 1,167
1 vote
1 answer
126 views

I have some PostgreSQL tables with columns of type: timestamp without time zone interval text numeric For example assume a table like: CREATE TABLE IF NOT EXISTS table_foo( "timestamp" ...
leas's user avatar
  • 301
1 vote
0 answers
487 views

I have PostgreSQL installed on my MacBook running macOS Sonoma version 14.5 I installed it using the Homebrew package manager. I think I have two versions installed: brew list postgresql@14 ...
C. Ball's user avatar
  • 721
0 votes
1 answer
60 views

procedure 1: create or replace procedure pro_1() as $$ begin raise info 'pro1'; end $$ language plpgsql; procedure 2: create or replace procedure pro_2() as $$ begin raise info 'pro.1'...
MAK's user avatar
  • 7,355
0 votes
1 answer
39 views

Table condition: This table contains function name in the column fn_name create table condition(id int,name varchar(50),fn_name varchar(50)); Data: insert into condition values(1,'check id','...
MAK's user avatar
  • 7,355
-1 votes
1 answer
97 views

I have a table that has a column that stores html in a text column. The database is remote. If I try to say pull the first 500 records with the html column it will take 25 minutes for the query to ...
Guerrilla's user avatar
  • 15.1k
0 votes
1 answer
115 views

We have a table which consist of anonymous code/token which needs to be executed from procedure. Here is the sample data: Table: create table tbl_tokens (id int,tokens text); Record: insert into ...
MAK's user avatar
  • 7,355
0 votes
0 answers
443 views

I source-compiled OpenSSL version 3.3 and compiled PostgreSQL 14 with it. When I tried to enable encryption and authentication via SSL in PostgreSQL with ssl_mode=on, I encountered errors related to ...
manasa's user avatar
  • 41
-1 votes
1 answer
203 views

I’m working with a TimescaleDB instance that has 10 CPU cores and 10 GiB of RAM, currently hosting approximately 9 million rows, which is continually growing. I'm encountering resource limitations and ...
Hesam Norin's user avatar
-2 votes
1 answer
66 views

Im trying to test out pg_input_is_valid & pg_input_error_info and it doesnt seem to work. From the below example i expect it to raise a message that 56.7899999 does not meet the criteria. Any ...
Raj24's user avatar
  • 1
0 votes
1 answer
4k views

I'm trying to figure out how I can add a GENERATED ALWAYS AS IDENTITY or GENERATED BY DEFAULT AS IDENTITY without needing to write SQL code. I know I'm able to add them using code like this: ALTER ...
Shaun Roselt's user avatar
  • 4,464
0 votes
1 answer
393 views

I'm building a database for recording extremely detailed information about individual items in a collection that spans a number of different media types (books, CDs, DVDs, etc). Every item in the ...
MossyQuill's user avatar
0 votes
0 answers
166 views

I run postgres in a docker container on oracle cloud. I opened the port with iptables and via the oracle cloud web interface. Somehow I can still not connect to the database using Datagrip. I also ...
ihaveaquestion's user avatar
0 votes
2 answers
369 views

I'm trying to use CYCLE detection in PostgreSQL to avoid circular nesting of groups but cannot figure it out. I have the following PostgreSQL 16 table: CREATE TABLE groups ( id serial PRIMARY KEY, ...
rastaBob's user avatar
  • 158
1 vote
1 answer
955 views

Our team has sat on this for a while and struggling to understand what is going. When ordering by created_at and all the created_ats are the same for the records we see the same record appearing as ...
Leor Seligman's user avatar
0 votes
1 answer
490 views

I have the following table definition in the schema on pgAdmin4 I'm trying to execute: CREATE TABLE IF NOT EXISTS Reporting ( SEQ integer, Product character varying(30) NOT NULL, Version integer ...
S'mon's user avatar
  • 25
0 votes
1 answer
84 views

I'm trying to print during the loop: WHILE (batch_offset < total_records) LOOP -- query code -- Get and display the number of rows processed GET DIAGNOSTICS rows_processed = ROW_COUNT; ...
rerere L.'s user avatar
0 votes
1 answer
208 views

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postgresMlEmbeddingModel' defined in class path resource [org/springframework/ai/autoconfigure/postgresml/...
PRATYUSH KUMAR SAHU's user avatar
0 votes
1 answer
57 views

I'm using Postgres v16. I've got a unique index on my invoice table: CREATE UNIQUE INDEX unq_invoice_display_id ON invoice (tenant_id, display_id, expiry_timestamp) WHERE id = original_invoice_id; #...
Kevin's user avatar
  • 1,881
0 votes
1 answer
371 views

I have this plpgsql trigger function DECLARE prev_record daily_data%ROWTYPE; BEGIN SELECT * INTO prev_record FROM ONLY TG_TABLE_NAME WHERE base = NEW.quote AND quote = 'USDT' ...
XotEmBotZ's user avatar
1 vote
1 answer
51 views

I want to copy data from one PG database to another, without moving the data to my local and back to the db - pg_dump -U postgres source_db_name | psql -U postgres target_db_name pretty certain this ...
Alexander Mills's user avatar
0 votes
1 answer
231 views

So imagine I have a table with a jsonb column data (for the sake of example, not because it's a good column name) that contains an array of json objects with a key states that is an array of USA state ...
dgsan's user avatar
  • 305
29 votes
3 answers
18k views

I just upgraded from spring-boot 3.2.3 -> 3.3.0. After the upgrade flyway refuses to connect to postgres: Caused by: org.flywaydb.core.api.FlywayException: Unsupported Database: PostgreSQL 16.2 ...
Kevin's user avatar
  • 1,881
0 votes
0 answers
45 views

I am reaching out to seek assistance with an issue I've encountered while transitioning from PostgreSQL 9.4 to PostgreSQL 16. The primary reason for this upgrade was the discontinuation of PostGIS ...
Rico's user avatar
  • 1
0 votes
0 answers
1k views

I have exactly this problem but NONE of the solutions in this thread helped me: psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory I am ...
Bosco Tsin's user avatar
1 vote
1 answer
756 views

We are trying to make the step from postgres 10 to 16, we already tried a while ago to lower versions 12 or 13, but updates were added in the machine and the poor performance we attribute to those ...
Víctor Martín Aguilar's user avatar
0 votes
2 answers
139 views

I have two columns: column1 with two distinct values (0, 1) and column2 with 3 distinct values ('A', 'B', 'C'). Value in column1 is always 0 for 'A' and 'B' in column2, but if the value in column2 is '...
Bunny Boss's user avatar
-1 votes
1 answer
77 views

This is how it currently works, first select query returns a list of parameters. SELECT character_id, foe_id, location_id, date_time, damage, points FROM events ORDER BY date_time DESC LIMIT 100 ...
Mario Orozco's user avatar