pgAdmin

Connecting pgadmin to postgres in docker

左心房为你撑大大i 提交于 2019-12-11 01:08:29
问题 I have a docker-compose file with services for python , nginx , postgres and pgadmin : services: postgres: image: postgres:9.6 env_file: .env volumes: - postgres_data:/var/lib/postgresql/data ports: - "5431:5431" pgadmin: image: dpage/pgadmin4 links: - postgres depends_on: - postgres environment: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: pwdpwd volumes: - pgadmin:/root/.pgadmin ports: - "5050:80" backend: build: context: ./foobar # This refs a Dockerfile with Python and

pgAdmin 4 v3.1 How can I use another browser? (Win 7)

筅森魡賤 提交于 2019-12-10 20:24:26
问题 I'd like to change my default browser to IE (as that one has most of our internal sites programmed for). But currently, I can only get pgadmin4 to work well with Opera. Is there a way to tell pgAdmin4 to use a different browser apart from the stock one? 回答1: With the latest version of pgAdmin4, developers have added copy URL option on right click on tray icon, Download the latest version then right click on pgAdmin4 tray icon which will give you option to Copy URL, once you click that option

install pgAdmin4 with yum

耗尽温柔 提交于 2019-12-10 20:17:41
问题 Is there already a way to install the pgAdmin IV Beta desktop runtime e.g. with yum? I found the download link for the Python wheel on the official site, but no hint for yum. It seems the desktop runtime is not available yet? 回答1: pgAdmin 4 is included in the official PostgreSQL yum repository. Add the RPM corresponding to your distribution and run: sudo yum install pgadmin4 回答2: Make sure you have the EPEL and pdgd-9x-centos repos enabled yum install pgadmin4-v1 来源: https://stackoverflow.com

error: Ident authentication failed for user

大兔子大兔子 提交于 2019-12-10 19:22:25
问题 I can't connect postgres through nodejs pg module or pgAdmin3 below is my config and error message, I can't find how to fix user, password, role privilege, database create su - postgres psql ALTER USER db_admin WITH PASSWORD ‘aaee11’; ALTER ROLE db_admin SUPERUSER CREATEDB CREATEROLE; CREATE DATABASE “testdb” WITH OWNER = db_admin ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'en_GB.UTF-8' LC_CTYPE = 'en_GB.UTF-8' CONNECTION LIMIT = -1 TEMPLATE template0; listen all vi /var/lib/pgsql

SQL Server table with 100k records, 2 Inner Joins Extremely Slow

非 Y 不嫁゛ 提交于 2019-12-10 17:52:19
问题 I'm migrating my data from SQL Server to Postgres. I'm changing my table structure to handle generic sports matches, but it is giving me performance problems. I have the following tables: matches (id, start_time) match_teams (id, match_id, team_id, score) match_players (id, lineup_id, player_id), where lineup_id is a foreign key on match_teams.id I'm selecting all matches with the following query: SELECT * FROM matches AS m INNER JOIN match_teams AS t ON m.id = t.match_id INNER JOIN match

PGAdmin 4 fails to backup database with no errors

 ̄綄美尐妖づ 提交于 2019-12-10 13:59:49
问题 I try to backup my university project database. I followed the instruction, everything seems to be inputed: 1: 2: 3: But the only pop-out I get is this one in right-bottom corner of PGAdmin 4: From the Official site, there should be another pop-up message, similiard to this one: But I don't get this one, nor I get the other one that is displayed where any error occurs. I tried to directly use pg_dump.exe , but it prompts me for a password. I tried all my passwords - user password, server

Copying CSV to Amazon RDS hosted Postgresql database

天大地大妈咪最大 提交于 2019-12-10 03:21:28
问题 I have a database hosted using Amazon's RDS service and I am attempting to write a web service that will update said database. The problem I am having is that it will not let me use the COPY command as I get this error: "ERROR: must be superuser to COPY to or from a file". I am using the only user I have made for the database and I am fairly certain it has superuser access. I can, however, use PGAdmin's import tool to import the data which, when looking at the log, uses almost the exact same

How restore postgreSQL dump file using pgAdmin?

纵饮孤独 提交于 2019-12-10 01:45:56
问题 I've a .dmp file. Want to restore the database from it. Using pgAdmin how can I do it? 回答1: Within PgAdmin3... Create a new database within the server you are using. Right click this database and choose 'Restore'. Use the 'Browser' button to select your '.dmp' file. Select 'Restore' to start restoring the database. 来源: https://stackoverflow.com/questions/30555112/how-restore-postgresql-dump-file-using-pgadmin

Select whole column content in pgAdmin

∥☆過路亽.° 提交于 2019-12-09 14:12:29
问题 I use PosgreSQL as database and PgAdmin as tool to manage it. When I write simple select (col is type of text and value of it is quite long, about 4k chars) SELECT col FROM tab I get this (there is about 250 chars before brackets): abababababa(...) but I inserted longer value. PgAdmin trim showed value and ends it with(...) string. How can I get whole content inside PgAdmin? 回答1: Try set this value in PgAdmin config : File > Options > Query Tool > Max. characters per column Look on settings

How to generate a CREATE script for several tables in pgAdmin III?

好久不见. 提交于 2019-12-09 13:42:06
问题 In pgAdmin III you can: right-click a table; scripts; CREATE script; save the script from the SQL Editor. If one has to do this for more than one table, is there a way to combine the scripts in one file (apart from manually copy-pasting them)? If this can be done via psql prompt or phppgadmin, that will be ok too. 回答1: Here's a way using pgAdmin. Right-click on your database (or schema). Choose "backup" Under "Format" choose "plain" Under "Dump Options #1" choose "Only schema" Under "Objects"