Questions tagged [pgadmin]
pgAdmin is an Open Source administration and development GUI for PostgreSQL.
1,648
questions
0
votes
0
answers
19
views
Syntax Error in Postgresql Trigger Function
I'm brand new. The task was to create a trigger that will delete all dependent tuples from the depositor table when an account in a parent table is deleted. Here's what I've got so far. I keep getting ...
0
votes
2
answers
26
views
Is there a way to get a random element out of a cursor in PL/PgSQL?
I'm studying examples in PostgreSQL, and I can't find a way to get a single random element when dealing with a cursor.
I have seen many articles and documentation, but there seems to be no way to do ...
0
votes
1
answer
11
views
PgAdmin4 database using on different servers
I have made a nice database in PgAdmin 4 (postgreSql 13). Now I want to use it on an external server. I installed PgAdmin4 (postgreSql13) also on the external server. And I used the same login, and ...
-1
votes
0
answers
21
views
Apache Superset filter
I am using two filters, "Goal" and "Tagret". Based on the Goal filter, Target is filtering, but once I remove the Target filter, I need to clear the Goal filter too. But it is not ...
0
votes
1
answer
7
views
Is it possible to create servers in PgAdmin 6.10
I am new to servers.
I have a RDS AWS server which i need to conect my PgAdmin.
But the problem is that i don't have option in Servers list to Create Server only a Server Group.
Does anyone know what ...
-1
votes
0
answers
12
views
How do I import flat file into PGAdmin using MacOS file path?
I’m trying to import .CSV file to PGAdmin using the file path but I keep getting the error. What am I doing wrong?
The dataset exists in my Download folder. I created a database first, then a table to ...
0
votes
1
answer
19
views
Address not available Is the server running on that host and accepting TCP/IP connections?
I am using PostgreSQL 14.4 inside Docker, and pgAdmin inside Docker for Windows.
My command I used
docker run -d --name vy_posgres_for_acc -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=...
2
votes
1
answer
75
views
pgadmin db restriction server property not working
I have a heroku postgres database. On pgadmin i can see over 1,700 databases since they are all on the same host. I have set the server connection settings as provided by heroku and i can see my ...
0
votes
1
answer
92
views
SSL connection is required. Please specify SSL options and retry - postgresql using dbforge
I have enabled Azure Postgresql SSL connection mode and after doing that I was not able to connect to Postgres database using dbForge, it is showing that SSL connection is required. Please specify SSL ...
0
votes
1
answer
15
views
In pgAdmin for postgreSQL, I am unable to query for MAXimum rows from another query that SUMs up and sorts rows. Working with 1 table
This is the initial query that groups, sums up, and orders the busiest day of the week per month and year for a small retail store:
SELECT year, month, day_of_week, SUM(total_revenue)
FROM vip_sales
...
0
votes
0
answers
26
views
Visualisation of isochrones
Im new at coding with SQL, specially with pgAdmin, right now i downloaded data form OpenStreetMap, and im trying to build questionnaires for the creation and visualization of isochrons in the road ...
-1
votes
0
answers
28
views
How to Display correct checked radio button in a PHP update form? Postgres SQL
I have to show a radio button (like this one), but currently when extracting the value from the database it shows only the no option and not the yes option if that is selected
Is there a way to ensure ...
1
vote
1
answer
98
views
docker pgadmin4 run on custom url
I've a docker container running pgadmin4 which i'm trying to set to run on a custom url because i've already another server running on the default / address... i've tryied all possible env vars but ...
0
votes
0
answers
29
views
Issue with server running slow on odoo
Can it be possible that the conversation icon on odoo can make the system run slow. The conversation icon was loading fast before I migrated a bunch of data to the res.partner table. Now the ...
0
votes
1
answer
30
views
How can I add a geometry column in using pgAdmin?
The following is the scripts I was using:
ALTER TABLE locations ADD COLUMN geom geometry(PointZ,4326);
I got this error:
ERROR: type "geometry" does not exist
LINE 1: ALTER TABLE ...
0
votes
0
answers
29
views
What kind of datatype is 32.99 in SQL?
I'm trying to create tables for a database for an assignment i've been given. I'm not the most experienced with SQL, but things were going well until the products table. I don't know how to use the ...
0
votes
2
answers
28
views
How to resolve a pgAdmin syntax error in my SQL
I would like to find out which department of the company has the employee earning the lowest salary and once I run this subquery I faced "syntax error"
SELECT D.department_name, E.FIRST_NAME
...
0
votes
0
answers
23
views
PgAdmin Saved Passwords on Shared Servers Broken for Non-Admins
On a clean installation of PgAdmin in server mode based on official docker image version 6.10 I have the following issue:
Add a shared server as admin.
Login as an unprivileged user, set server ...
-1
votes
0
answers
23
views
Updating a single element of a JSONB array in PostgreSQL through pgadmin
I'm doing this through pgAdmin 4.
I have a table that consists of 3 columns:
CREATE TABLE (
id integer NOT NULL,
podaci json NOT NULL,
datum_upisa timpestamp with time zone NOT ...
0
votes
1
answer
28
views
Can I usemultiple return values of INSERT...RETURNING in another INSERT or multiples insert?
I need take the id of anexo an then the result id list insert in another table
with new_id as(INSERT INTO
clienteproveedor.anexo
(
codigo,
estado,
facturar,
...
0
votes
2
answers
42
views
create a new column with passwords using crypt
I am currently trying to create a new column with passwords based on other column from the same table (tb_customer).
The source to create the passwords is the column cust_cif.
The script I used is as ...
0
votes
0
answers
18
views
How to use crosstab() with varying amount of column names? [PostgreSQL]
I want to get this output:
Which I get when I run the following through psql:
select month, staff_name, total FROM (
SELECT
to_char(payment.payment_date, 'Month') AS month
, staff....
0
votes
1
answer
114
views
Unable to connect to PostgreSQL databese on Amazon RDS from pgAdmin4: internal server error: port 5432 failed: timeout expired
I'm getting this error while performing the steps from the video: https://www.youtube.com/watch?v=XDMgXZUfa10&t=897s
The error:
0
votes
1
answer
29
views
Is it possible to retrieve tables with stored procedures?
It's the first time I use PostgreSQL and its most popular interface, Pgadmin4. I noticed I couldn't get tables using SELECT inside a stored procedure, but managed to do it with a function that returns ...
0
votes
0
answers
22
views
PostgreSQL query to list all table names from all servers
I have 13 servers in Pgadmin, and about 100 databases in each
i know what it possible fro psql SELECT datname FROM pg_database; but it need 13 times do that.
I want to export list of all server at ...
0
votes
0
answers
40
views
Odoo: When im creating the models for a new module, no table is created in PostgreSQL
when im trying to create the models for my new module for Odoo, 2 tables and it's fields are supposed to be created in PostgreSQL and shown in pgAdmin as well, i tried to debug the module and reboot ...
0
votes
1
answer
73
views
Do a select query on all tables of PostgreSQL database using pgAdmin 4
I have a database of around 90 schemas. In each of these schemas, I go to "Materialized Views" and go to a one of the views called, "product_visitor_view" and I create a SELECT ...
0
votes
0
answers
25
views
How to display double quotes in Postgres/pgAdmin column
In my new workplace, some of table have column name wrapped with double quote and some of them is not. It's somewhat confusing for me to do some query. So I want to try standardize that to wrapped all ...
0
votes
2
answers
72
views
How to display only results matching a certain condition in SQL?
I would appreciate your help very much as I’m still at beginner level in SQL. Thank you :)
I have tables representing counties, vendors and their respective sales of stationery products. I have to ...
0
votes
0
answers
24
views
Getting: Could not connect to Server - Connectin refused with postgres
I have Postgres 13 and pgAdmin installed on my Windows machine. It worked for like ~six month, until I hat do restart my machine. After restarting the computer (which I had not done because there was ...
0
votes
0
answers
28
views
Importing/Exporting Data in pgAdmin
I have downloaded PostgreSQL a short while ago, I am trying to import a CSV into a table. However i keep getting this error.
"ERROR: extra data after last expected column"
Me and my ...
0
votes
0
answers
150
views
Install pgAdmin on Ubuntu 20.04.4 LTS - Conf pgadmin4 does not exist
I'm running these commands to install pgAdmin on Ubuntu 20.04.4 LTS
#
# Setup the repository
#
# Install the public key for the repository (if not done previously):
sudo curl https://www.pgadmin.org/...
0
votes
0
answers
8
views
Performing table join in pgadmin
I am trying to join the task table to wr2_descending but getting confused. The id column seems to be used for joining them. However, there is quad_id in task table, and 2 different id's gid and pr_id ...
0
votes
1
answer
75
views
Pgadmin does not start with docker-compose-file
I started working with postgres and discovered pgadmin.
I started like this:
Postgres:
$ docker run --name admin -e POSTGRES_PASSWORD=admin -p 5432:5432 -d postgres:latest
Pgadmin:
docker run -p ...
0
votes
0
answers
10
views
pgadmin changes data from MDY to DMY on import
When I import a csv with date as DMY, pgadmin seems to convert it to MDY. I have tried set datestyle to DMY however it keeps coming in the wrong way. I set the import as UTF8.
3
votes
2
answers
39
views
How can I find out same values with more than one condition and put values of the same column in different columns?
I have to find out in which pair of countries is the same number of sales at the same date and the same seller. Then I want to order it such as there are the two countries from the same column next to ...
0
votes
1
answer
329
views
ERROR: invalid input syntax for type json DETAIL: Token "'" is invalid. while importing csv in pgadmin
I have made a new table with three columns
customer_id,media_urls,survey_taste
in a db in pgadmin with attributes as
int,text[],jsonb
respectively.
I have a csv that I was trying to import into this ...
0
votes
1
answer
44
views
How can I aggregate columns, then find out the biggest changes over time and display the most outstanding ones?
I'm a beginner in SQL and want to track the biggest changes in sales of tickets over time in absolute manner (so positive and negative) for a set of states (with a number of venders who can sell in ...
0
votes
0
answers
186
views
PgAdmin4: INTERNAL SERVER ERROR: Connection to the server has been lost
I am writing an email sending function, but an error occurs when creating the function, what should I do?
INTERNAL SERVER ERROR: Connection to the server has been lost
import smtplib
sender = _from
...
1
vote
1
answer
60
views
How can I count unique attribute values using two attributes and joining two tables?
I'm a beginner in SQL.
Simplified, I have two tables, districts and streetdistricts, which contain information about city districts and streets. Every district has a unique number dkey and every ...
0
votes
0
answers
26
views
SQL: in CHECK, check varchar value in another table using entered foreign key
One of the values to be inserted into a table is a foreign key. I need to figure out how to, inside the CHECK clause, check if a value in another table is equal to a specific value using the foreign ...
0
votes
2
answers
60
views
What is the easiest way to generate a script to drop and create all objects in a database?
I'm used to working with SQL Server and the SQL Server Management Studio has the option to automatically generate a script to drop and recreate everything in a database (tables/views/procedures/etc). ...
0
votes
0
answers
28
views
How to connect to postgres inside docker based webapplication from pgadmin anywhere outside the docker image?
I have the following container:
admin@PC:/$docker ps -a
returns
CONTAINER ID
IMAGE
COMMAND
CREATED
STATUS
PORTS
NAMES
9c0adfffff
hg/sample:1.1
"/usr/sbin/init"
8 days ago
Up 7 days
0.0....
0
votes
0
answers
30
views
How to restore a ".backup" in PGAdmin3
I´ve saved a database in PGAdmin3 and got a "Test.backup" file. When I try to restore it I get the error message: "pg_restore: [archiver] input file does not seem to be a valid archive&...
0
votes
0
answers
28
views
Error Occured while starting pgadmin docker image in Ubuntu
taneesha@TANEESHA:~$ sudo docker start 3e0033eb5b5c
[sudo] password for taneesha:
fatal error: slice bounds out of range
goroutine 0 [idle]:
runtime: unexpected return pc for runtime.sigtramp called ...
0
votes
0
answers
24
views
Why does pgadmin use the wrong port?
I am trying to connect to a database that runs in a docker container on a VM.
I setup the SSH tunnel and I don't get an error, so I guess that works.
But I get this error message. Which looks a bit ...
5
votes
0
answers
107
views
pgAdmin IV "'charmap' codec can't decode byte 0x8d in position 8773: character maps to <undefined>"
I'm using pgAdmin IV (version 5.7) now because of my job, previously I only had used pgAdmin III.
My problem is that I have already set the charset correctly with
set client_encoding = 'Win1252';
and ...
0
votes
0
answers
104
views
Connecting remotely to postgreSQL database
I'm trying to connect remotely on pgAdmin to a database hosted on a Windows 10 PC on another network from my personal PC.
Steps taken:
Changed listen_addresses = 'localhost' to listen_addresses = '*' ...
0
votes
1
answer
27
views
PostgreSQL Select acorss tables
I have very little experience with PostgreSQL and looking for a way using pgadmin to list out the rows across tables with foreign keys so that I can quickly update some records without doing this via ...
0
votes
0
answers
29
views
pgAdmin loading forever and not rendering in web browser
I just installed pgadmin in my ubuntu server and when i try to access it through web browser it is not loading how to fix this issue?