Refactor postgresImportForeignSchema to avoid code duplication.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Sep 2021 20:21:13 +0000 (16:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Sep 2021 20:21:13 +0000 (16:21 -0400)
commit2dc53fe2a77d8d5f22c656fdf6590198e358a996
treefd5466036f5ee90410784bd71ba41715649f0015
parent537ca68dbb2463f7b1c44e9466b8fbdd7505b2e1
Refactor postgresImportForeignSchema to avoid code duplication.

Avoid repeating fragments of the query we're building, along the
same lines as recent cleanup in pg_dump.  I got annoyed about this
because aa769f80e broke my pending patch to change postgres_fdw's
collation handling, due to each of us having incompletely done
this same refactoring.  Let's finish that job in hopes of having
a more stable base.
contrib/postgres_fdw/postgres_fdw.c