178,991 questions
-2
votes
0
answers
23
views
pgAdmin4 Random database names instead of the name i put. MacOs Tahoe
So i got a message from pgAdmin to upgrade to the lastest version, i did it. Since i updated im having troubles now. When im trying to conect to the server with the Querry Tool Workspace im getting an ...
0
votes
0
answers
50
views
"[" default "]" Value on PgAdmin [closed]
I recently noticed unexpected behavior when importing data from files.
Setup:
Importing data from a file using function (I'm using Psycopg2 with Python)
One column has a default value defined in the ...
0
votes
0
answers
32
views
Prisma V7 Error: Client Password must be a string
I am sorry if it's asked already, I just migrated to Prisma V7 and am stuck with an unsolvable error.
SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
The server runs fine, Though the ...
-7
votes
1
answer
103
views
What is the method to combine multiple sheets when there are no common fields?
I am uncertain about how to merge data from multiple sheets using only the file name, especially when the file names vary in case.
C:\Report\overview.csv:
overview.csv.
Issue Name, Issue Type, Issue ...
Advice
0
votes
3
replies
32
views
Trigger Function to check record uniqueness
I have a trigger in Postgresql 13 like this to prevent duplicate entry on one of the coloumn :
This trigger is used in Arcgis Field Map apps.
CREATE OR REPLACE FUNCTION xxx_check_unique()
...
-3
votes
0
answers
27
views
postgres exited with code 1 "nc: bad address 'postgres'" temporal docker-compose [closed]
I'm trying to run the temporal server locally with Docker, but I'm having this PostgreSQL issue.
I initially realised that there was an issue with the formatting and indexing of my Docker file, and I ...
Advice
0
votes
3
replies
66
views
PostgreSQL, unique on combination of two columns
In PostgreSQL, it is easy to set a uniqueness constraint for two columns using CONSTRAINT UNIQUE.
For example
CREATE TABLE someTable (
id serial PRIMARY KEY,
col1 int NOT NULL,
col2 int ...
0
votes
0
answers
49
views
Rails 8 test trying to find unknown relation
I've been trying to write model tests for my Ruby on Rails 8 + Postgres project, but even with the simplest tests I get the following error.
I've never had a table or a relationship called listing, ...
1
vote
2
answers
52
views
How to connect to a Postgres accessible under a pathname via JDBC?
I have a Postgres on a server which is available under https://somethig.my.domain/postgres on port 5432.
I'm trying to connect via DataGrip which uses a JDBC driver. But I cannot figure out the ...
1
vote
2
answers
74
views
Trigger on PostgreSQL updating salary column
I am having some troubles setting a trigger in PostgreSQL. I have a table Employees with columns such as employee_id, salary and hourly_pay. The salary is annual, so I'd like to change the salary when ...
0
votes
0
answers
40
views
MacOS : Postgres dumping result with permission denied, butg sometime passed [closed]
i'm trying to dump data with script file .sh
So i got a folder in /Home with : working , and inside would be dev-sever and dev-docker
When i run docker there is no error but when i open terminal and ...
-1
votes
0
answers
30
views
How to upgrade cluster from Postgres 17 Windows to Postgres 18 Debian [migrated]
Postgres 17 cluster is in Windows server in Estonian locale. Databases are defined like
CREATE DATABASE mydb
WITH
OWNER = mydb_owner
ENCODING = 'UTF8'
LC_COLLATE = 'et-EE'
LC_CTYPE ...
Advice
1
vote
2
replies
47
views
ordering whole query by the field of multiset in jooq
in spring boot, i wanna have nested records, because if that i need to use multiset in my selects. then i need to order the whole query by fields in my multiset. but the problem is that i get a error ...
0
votes
0
answers
127
views
How to use index in simple select
Table has index on name column:
CREATE TABLE firma2.klient
(
kood character(12) primary key,
nimi character(100),
...
);
CREATE INDEX IF NOT EXISTS ...
1
vote
2
answers
118
views
How to call Postgres function from .NET? [closed]
I tried this code:
CREATE OR REPLACE FUNCTION public.t4(in iid int, OUT n1 text, OUT n2 text)
LANGUAGE plpgsql
AS $function$
BEGIN
SELECT DISTINCT n1=l.name, n2=l.comment from ...