pgadmin-4

PostgresSQL / pgAdmin4 / dump server version mismatch

社会主义新天地 提交于 2019-12-05 08:48:48
I tried to make a backup with Postgres 11.1 in pgAdmin4, but it failed. pgadmin displayed a window with Status: Failed (exit code: 1). pg_dump:server version: 11.1; pg_dump: 10.5 pg_dump: aborting because of server mismatch I don't really understand it. Does pgadmin4 not know that I am using 11.1 and not 10.5? PROBLEM SOLVED - IN MY CASE. Go to pgadmin < Preferences < Path < Binary Path The PostgreSQL Binary Path was set automatically to $DIR/../runtime I changed the Path to my installed PostgreSQL Version C:\Program Files\PostgreSQL\11\bin Your pgAdmin is using PostgresSQL client v10, but

Slow indexing of 300GB Postgis table

两盒软妹~` 提交于 2019-12-05 00:00:50
问题 I am loading about 300GB of contour line data in to an postgis table. To speed up the process i read that it is fastest to first load the data, and then create an index. Loading the data only took about 2 days, but now I have been waiting for the index for about 30 days, and it is still not ready. The query was: create index idx_contour_geom on contour.contour using gist(geom); I ran it in pgadmin4, and the memory consumption of the progran has varied from 500MB to 100GB++ since. Is it normal

PGAdmin: Not connected to the server or the connection to the server has been closed

我只是一个虾纸丫 提交于 2019-12-04 23:38:29
i got this problem with postgreSQL, when i do a simple query of anything (CRUD), sometimes it works and almost always shows this message: Not connected to the server or the connection to the server has been closed. I don't know how to solve it and it started to irritate me, anyone know how to fix it? UPDATE 1 I have been searching and it seems the pgadmin4 the problem (it seems because it's not 100% developed yet), i have been using pgadmin3 and that error doesn't show up. The reason this happened for me was a syntax error in the query. Check your syntax and try again, maybe this suffices This

pgAdmin 4 Query Tool not connecting to database

南笙酒味 提交于 2019-12-04 05:01:43
I am trying to query a remote database that I am connected to, however am having issues 'connecting' to the database with the Query Tool. The Query Tool opens, however the 'plug' icon stays red and doesn't seem to connect to the database (see picture below). I'm not sure if that is the best way to describe it, however hopefully attached picture makes sense. Is there a reason that this is occurring? I have left it to load overnight, etc. in case it is just waiting to connect with remote database but it still does not connect. Thanks in advance I had the same problem for months. But I found that

pgAdmin 4 ver. 1.5 - no error messages

早过忘川 提交于 2019-12-04 02:52:59
问题 I use pgAdmin 4 ver. 1.5. When I run an SQL query that has some issues (e.g. a column or a table does not exist) I can only see a message saying "Query returned successfully" but I cannot see any error message. pgAdmin III 1.22.2 However, pgAdmin III shows clearly SQL error messages in the same situation. Is there any option in pgAdmin 4 to turn the error messages on? Or it's just a bug? 回答1: An issue is caused by non-English encoding. I've experienced this issue within whole version 4 line.

OSError: [Errno 13] Permission denied: '/var/lib/pgadmin'

↘锁芯ラ 提交于 2019-12-03 14:58:29
Ubuntu 16.04.3 I'd like to install pgAdmin: I hvae created a virtualenv with python 2. Then install pgAdmin 4 v2.0: pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v2.0/pip/pgadmin4-2.0-py2.py3-none-any.whl It's time to run pgAdmin: (pgadmin4) michael@michael-desktop:~/PycharmProjects/venv$ python pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py Traceback (most recent call last): File "pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module> exec(open(file_quote(setupfile), 'r').read()) File "<string>", line 46, in <module> File "/home/michael

PgAdmin4 unable to query or view data

空扰寡人 提交于 2019-12-03 08:37:37
问题 I have a very basic PostgreSql table. Despite the simple table schema, I cannot query it via PgAdmin4. The View Data option is unresponsive; Query Tool option becomes unresponsive after a few attempts in opening and closing the panel. When the Query Tool is eventually (somehow) launched, a trivial SQL statement like SELECT * FROM test_table will spin forever and never display. The diagram above shows the exact same table, which is okay under PgAdmin3. The table was created empty. Then added

Select does not return values Postgres-11.4

ぐ巨炮叔叔 提交于 2019-12-03 01:51:44
I am using pgAdmin-4 and created a database with a single table, but select returns an error message: 'table oid' I'm using a normal select query. SELECT * FROM escola This happens with PostgreSQL 11.4. The problem is due to python3-psycopg2. The latest pgadmin4 version requires psycopg2-2.8. But if you're on Debian/Ubuntu stable, apt installed v2.7. So you need to update it with pip : sudo pip3 install -U psycopg2 Then update the pgadmin4 config to add the local python path: nano ~/.config/pgadmin/pgadmin4.conf # or with a right click on the system tray icon # add /usr/local/lib/python3.6

Messed up pgAdmin 4 menu bar

青春壹個敷衍的年華 提交于 2019-12-02 17:23:20
问题 I would like to know how to load the default setting for pgAdmin-4. I messed up with the menu bar and now I cannot see the tree view. I tried re-installing it but still loading the same setting. I posted a screenshot for reference. Any ideas? 回答1: The problem was solved after doing a thorough uninstall. Removed files associated with pgAdmin from the Local and Roaming folders located at c:\Users\Username\Appdata Removed files associated with pgAdmin from registry including HKEY_CURRENT_USER

Error trying to run pgAdmin4

大城市里の小女人 提交于 2019-12-01 15:23:39
I've installed postgresql 9.6 (using suggested linux installer) which comes with pgAdmin4, but getting a few errors. First, I had to change the folder name from "pgAdmin 4" (note the extra space) to "pgAdmin4" to avoid "file not found error". Then I run sudo python pgAdmin4.py and got the following error: Traceback (most recent call last): File "../../pgAdmin4.py", line 24, in <module> from pgadmin import create_app File "/opt/PostgreSQL/9.6/pgAdmin4/web/pgadmin/__init__.py", line 17, in <module> from flask import Flask, abort, request, current_app ImportError: No module named flask I tried