Note that while PostgreSQL 12 is in the 20.04 repository, pgadmin4 is not This post details my experiment using the howto article linked here which explains how to install pgadmin4.
Before I retired 13 years ago I used to write client software against Oracle servers, using Kate as my editor and PostgreSQL as my oracle substitute. It was running on a SuSE 6.3 server in my office. I used compiler defines to determine the OS the source was being compiled on so as to switch in the proper code for PostgreSQL or Oracle.
The last time I used PostgreSQL was version 7.4 with pgadmin3, in 2008. At the time I retired I was using PostgreSQL 8,3. I ran across the article linked above while browsing the web yesterday and decided to see what PostgreSQL 12 with pgadmin4 looked like. I have one word to describe my impressions -- WOW!
Below is a screen capture of pgadmin4 running against my jlserver containing jlkdb.
The installation of pgadmin4 also requires the installation of apache2, which is done automatically when installing pgadmin4.
I didn't see an option to create a user from pgadmin4. So, to create a user you can do "sudo su - postgres" to gain access to psql in the postgres account, which is the PostgreSQL console admin tool.
From psql, as postgres, you can create the first user:
Prefix "NO" to any of the options listed above if you don't want someusername to have those options. The SUPERUISER option gives them "WITH PRIVILEGES" (i.e., ALL privileges: SELECT INSERT UPDATE DELETE TRUNCATE REFERENCES TRIGGER CREATE CONNECT TEMPORARY EXECUTE USAGE ). Or you can say "WITH <and list privileges you want them to have>"
Then, while in psql, you can create a database owned by someusername.
Now, as a superuser, and without depending on postgres, someusername use pgadmin4's web interface to do everything one needs to do with a PostgreSQL server & database, with a lot more capability than pgadmin3 used to have.
I am going to play with PostgreSQL 12 and see how well the pgsql modules in Python3 and Jupyter Notebook work with it.
Before I retired 13 years ago I used to write client software against Oracle servers, using Kate as my editor and PostgreSQL as my oracle substitute. It was running on a SuSE 6.3 server in my office. I used compiler defines to determine the OS the source was being compiled on so as to switch in the proper code for PostgreSQL or Oracle.
The last time I used PostgreSQL was version 7.4 with pgadmin3, in 2008. At the time I retired I was using PostgreSQL 8,3. I ran across the article linked above while browsing the web yesterday and decided to see what PostgreSQL 12 with pgadmin4 looked like. I have one word to describe my impressions -- WOW!
Below is a screen capture of pgadmin4 running against my jlserver containing jlkdb.
The installation of pgadmin4 also requires the installation of apache2, which is done automatically when installing pgadmin4.
I didn't see an option to create a user from pgadmin4. So, to create a user you can do "sudo su - postgres" to gain access to psql in the postgres account, which is the PostgreSQL console admin tool.
From psql, as postgres, you can create the first user:
Code:
CREATE ROLE someusername WITH LOGIN SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION
Then, while in psql, you can create a database owned by someusername.
Code:
CREATE DATABASE someusernamedb WITH OWNER = someusername ENCODING = 'UTF8' LC_COLLATE = 'en_CA.UTF-8' LC_CTYPE = 'en_CA.UTF-8' TABLESPACE = pg_default CONNECTION LIMIT = -1; GRANT TEMPORARY, CONNECT ON DATABASE someusernamedb TO PUBLIC; GRANT ALL ON DATABASE someusernamedb TO someusername;
I am going to play with PostgreSQL 12 and see how well the pgsql modules in Python3 and Jupyter Notebook work with it.
Comment