In this post we’ll look at how they compare when it comes to performance and the data size on disk.We’ve ended with two PostgreSQL clusters, one running on the ext4 file system while the other is running on top of the ZFS file system. The size of the empty cluster is 39MB and 4.7MB on ext4 and ZFS file system respectively due to ZFS compression.Loading data with pgbench shows the size for ext4 is 16GB while for ZFS is 914MB. The runtime was 382.58s for ext4 and 267.87s for ZFS.The instance running on ZFS is slower than the instance running on ext4 for reading with simple pgbench tests.pgbench test results for the same workload show ext4 is faster than the ZFS file system.No clear winner between the two file systems, it depends on the workload and requirements.Testing in your own environment is highly recommended.ZFS might be worth considering for space on disk and snapshots and replication on the file system level.ZFS might not be the best option for workloads that are mostly about reads.