I want to know that if multi-users try to access same database for insert or retrieve data via my python program, do they all need to install PostgreSQL in their computers? How this process works?
-
1Normally a database is hosted on a single server and accessible to multiple users on the network. If your GUI interface is webbased, they likely need nothing. Otherwise you just give them your program (and the needed privileges for your database server).roadrunner66– roadrunner662016-03-15 23:03:24 +00:00Commented Mar 15, 2016 at 23:03
-
How is your python program communicating with the postgresql database?Brendan Abel– Brendan Abel2016-03-16 00:02:52 +00:00Commented Mar 16, 2016 at 0:02
2 Answers
If the database is located on another server, then no, clients don't have to install postgresql. They will need to install a postgresql adapter, like psycopg, so that python can communicate with the database, and most applications choose to use some type of ORM, like sqlalchemy, on top of the database adapter to make communication with the database more object-oriented and pythonic.
3 Comments
If you use psycopg2, it already comes with lipq DLL, the library used to communicate with PostgreSQL through TCP.
Actually, psycopg2 is a wrapper for libpq: http://initd.org/psycopg/docs/
Therefore, you won't need to install PostgreSQL server binaries in the client workstations.