I am on Linux with PostgreSQL 5.5. I am trying to monitor all traffic related to PostgreSQL between master and slave. To that end, I used Wireshark to monitor the traffic. Then, I started PostgreSQL and ran various queries. During those queries, I ran Wireshark on master just to capture the traffic between master and slave.
But there is one problems with PostgreSQL traffic captured using Wireshark. All the traffic is sent/received in TCP packets and that traffic is in coded form. I can't read that data. Please see the image below:
.
I want to find out the exact queries from Wireshark that I inserted in the PostgreSQL database. What is the best way to go about finding queries of PostgreSQL?
On the other hand, I ran same queries on MySQL database and repeated above mentioned experiment. I can easily read all those three queries in the Wireshark dump because they are not in coded form. Please see the image below:
At the end of the image, the exact query that I inserted in MySQL is shown. But I can't read the same query in PostgreSQL case (refer to the first image).
I need to find out above query from Wireshark file.
About the file:
- 192.168.50.11 is the source machine from where I inserted queries to remote PostgreSQL's master server
- 192.168.50.12 is the IP of master's server
- 192.168.50.13 is the slave's IP address
Queries were executed from .11 and inserted into .12 and then replicated to .13 using the master-slave approach. Pointers will be very welcome.