Move common pg_dump code related to connections to a new file

Andrew Dunstan <andrew@dunslane.net>

Commit: c1da7281060d646f863e920a1aac3b9dbc997672
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2025-04-04T20:01:22Z
Releases: 18.0
Move common pg_dump code related to connections to a new file

ConnectDatabase is used by pg_dumpall, pg_restore and pg_dump so move
common code to new file.

new file name: connectdb.c

Author:    Mahendra Singh Thalor <mahi6run@gmail.com>

Files