Question

Connecting pgAdmin4 to a managed PostgreSQL database on DigitalOcean

Hello, I’m trying to connect to a PostgreSQL managed database with pgAdmin4 in order to be able to access the database. Since I’m new to DigitalOcean and deployment in general, I have some uncertainties. I have already made a connection between pgAdmin4 and PostgreSQL by creating a new server in pgAdmin4 and inputting my Connection parameters. Now I can see the databases that I have and also the tables inside, however I’m unsure what will happen if I try to make changes in the data. For example if I want to edit a row in a table or import a lot of information into multiple tables, will that have some negative effect and will the PostgreSQL managed database update with the changes I make in pgAdmin4. Another question regarding the connection itself, is this connection secure and is there a better way to do it?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 15, 2022

Hi there,

Yes, the connection is secure as only SSL connections are allowed.

To make it more secure, you could lock down your database to be only accessible via some IP addresses as described here:

https://docs.digitalocean.com/products/databases/postgresql/how-to/secure/

Yes, any changes you make via the pgAdmin4 are essentially directly made on the database clusters, so if you delete a database via pgAdmin4, it is deleted directly from the cluster, and the same goes for any data you add in there.

The pgAdmin4 tool is essentially just a client that allows you to connect to the remote server and make changes directly to the databases there.

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel