I come from a SQL Server background and our team is migrating to Postgres (version 9.5). We have a number of scripts that perform MERGE statements th ...
I come from a SQL Server background and our team is migrating to Postgres (version 9.5). We have a number of scripts that perform MERGE statements th ...
We are currently upgrading our Spring Boot based application to version 3 but the following issue occurs: Spring Boot 3 uses Flyway in version 9. ...
I'm trying to build JSON objects in a loop and store those objects in a JSON array. I tried to use array_append, json_agg, json_object_agg, but I cou ...
I have a column 'zips' with type 'text' in the table parcels. User can fill either a single zip code, OR multiple comma separated zips, OR a range of ...
device_id device_created_at 10e7983e-6a7b-443f-b0fe-d5e6485a502c 2022-08-10 20:55:16.695 ...
Given: Linux Mint 20.3 DB Client: DBeaver 22.1.4 I try to backup my Postgresql's db (my_db) by DBeaver. But I get error: ...
I need some help in converting JSON array in postgresTO JSON object as below. Please Note the keys are not known in advance, any key can show up in th ...
I ran this anonymous block on Postgres and got this error: An It returns me this error: ...
I'm still in the process of learning, I'm attempting to build a fullstack app and I'm facing a little issue. Even after making changes to the databas ...
I have a Postgres table with a JSONB column in which I want to store an array. The array starts off having 0 elements but will grow to hold up to N el ...
I have quite a few procedures that rely on performing different queries based on the value of certain config variables. For example it'll be something ...
For example: If my current date is 2022-07-21, my query should give me 2022-06-30. I could easily do it in IBM DB2 but struggling in postgresql. ...
I have written simple update statement in PostgreSQL: I checked that a select statement with same condition return a row, but when I run it I got t ...
Code: ERROR: syntax error in or near of «;» LINE 1: DROP function IF EXISTS update_rarity; ^ SQL st ...
I have postgres 9.5 database with one master and two replicas. My project is on c++. To check if master instance is available I run mock query. Is the ...
can any one help to create function in postgresql where parameters are insertdatausingarray(exp_ids array, group_id integer) and inside function that ...
Table: Query Problem Error: column reference total is ambiguous ...
I Created the next Trigger to move the data from a main table to an historical table in case of an update or insert. This Trigger moves all data fr ...
I have a table in which objects have ids and they have names. The ids are correct by definition, the names are almost always correct, but sometimes di ...
As per replication slot definition, it is a feature in PostgreSQL that ensure that the master server will retain the WAL logs that are needed by the r ...