Java client on local machine update database on server - Mailing list pgsql-novice

From Kieran Clinton Tarestad
Subject Java client on local machine update database on server
Date
Msg-id E1AJgrA-001rzf-00@mailserver1.uea.ac.uk
Whole thread Raw
Responses Re: Java client on local machine update database on server
List pgsql-novice

Hi,

I’m doing a project where I will have a java GUI on a clients machine and I want it to have the ability to receive input from a user and then update a postgresql database (but wouldn’t have to be straight away). I can currently think of two ways of doing this:

Firstly turn the user input to a set of SQL statements and save into a text file and then create a transaction that will connect to the database on the server and execute them all.

Probably an easier way would be to have a copy of the database on the clients machine and copy the database to the server every night or so.

Would either of these ideas work? Which seems less crazy? Is there an easier way?

 

Thanks in advance for the help. Apologies in advance for being such a novice.

 

Kieran Tarestad

pgsql-novice by date:

Previous
From: "Anis W. Nugroho"
Date:
Subject: Re: pg_dump: Exporting SQL and data for a schema ONLY??
Next
From: Noel
Date:
Subject: Re: Java client on local machine update database on server