test partition of PostgreSQL