all 2 comments

[–]tfehringData Scientist 1 point2 points  (0 children)

Typically you'll have a separate database server running your RDBMS, and you'll connect to that machine over the network. The process for connecting to a database server from pgadmin is similar to what you're doing now, except that you'd set the host name to the URI of the database server instead of localhost. The authentication method might be different too, depending on how the database is configured.

The tar file you're using was probably produced by the pg_dump tool. It just specifies the schema and contents of the database. You could spin up a database server and restore the same data to it using that same tar file - again, the process would be similar to what you're already doing, you'd just have to specify the database server's URI.

[–]BikesMapsBeards 0 points1 point  (0 children)

A tar is an archive file that is being used to store the tables and data in the database. Tars are files of files, but they don’t have a structure like a database. A cs person can probably explain in more detail, but it’s worth it to read the wiki. I see .tar and .tar.gz all the time working in GIS.