In PostgreSQL, how to insert data with COPY command?

COPY tbl FROM STDIN; is not supported by pgAdmin. You get a plain syntax error because Postgres gets the data as SQL code. Four possible solutions: 1. Use a multi-row INSERT instead: INSERT INTO beer(name, tags, alcohol, brewery, id, brewery_id, image) VALUES (‘Bons Voeux’, ‘blonde’, 9.5, ‘Brasserie Dupont’, 250, 130, ‘generic.png’) , (‘Boerke Blond’, ‘blonde’, … Read more

Debug PostgreSQL function using pgAdmin

You have to enable debugging in two places. On PGAdmin and on the database itself. That article you referenced does a wonderful job explaining it but there were some nuances. PGAdmin When updating your postgresql.conf file to load the debugging library, I was running PGAdmin on Windows so the file was here: C:\Program Files\PostgreSQL\9.4\data\postgresql.conf And … Read more

pgAdmin 4 always open in browser not as a standalone desktop application

With new chrome versions it is possible to run pgAdmin 4 as “native” desktop app. While the pgAdmin v4 web server is running, right click the icon in the Windows System Tray and select Configure… In the Browser Command input add the following: “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –app=%URL% Note that if you have Google Chrome installed … Read more