Network Time Protocol – NTP- is a networking
protocol for clock synchronization between computer systems
over packet-switched, variable-latency data networks which runs over
port 123 UDP at Transport Layer. In operation since before 1985, NTP is one of
the oldest Internet protocols in current use. NTP was originally
designed by David L. Mills of the University of Delaware, who
still oversees its development.
Step
1: You have to make PostgreSQL listening for
remote incoming TCP connections because the default settings allow listening
only for connections on the loopback interface. To be able to reach the server
remotely you have to add the following line into the file /etc/postgresql/9.3/main/postgresql.conf: