Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

postgresql tcp data compression

Is there any internal method in postgresql to enable data compression over psql connection over tcp socket.

I can also use some other method that are not internal to postgresql, such as ssh compression or any other vpn compression. However, this may increase complexity.

Regards,

like image 941
seaquest Avatar asked Aug 28 '11 01:08

seaquest


People also ask

Does PostgreSQL compress data?

PostgreSQL uses a fixed page size (commonly 8 kB), and does not allow tuples to span multiple pages. Therefore, it is not possible to store very large field values directly. To overcome this limitation, large field values are compressed and/or broken up into multiple physical rows.

What is connection timeout in PostgreSQL?

The default connection timeout limit to PostgreSQL data sources is 30 seconds.


1 Answers

It seems that starting with postgresql 9.2 there is an sslcompression option that defaults to true. However it requires that the used openssl library is build with zlib support to work. For instance the openssl binaries in the windows enterprise DB installers do not have this support. Also both sides have ofcourse to support it!

like image 77
Eelke Avatar answered Sep 27 '22 20:09

Eelke