Bypass PostgreSQL catalog overhead with direct partition hash calculations