mirror of https://github.com/postgres/postgres
Move connect.h from fe_utils to src/include/common.
Any libpq client can use the header. Clients include backend components postgres_fdw, dblink, and logical replication apply worker. Back-patch to v10, because another fix needs this. In released branches, just copy the header and keep the original.
This commit is contained in:
parent
7eeb1d9861
commit
e078fb5d4e
|
@ -10,8 +10,8 @@
|
|||
#include "postgres_fe.h"
|
||||
|
||||
#include "catalog/pg_class_d.h"
|
||||
#include "common/connect.h"
|
||||
#include "common/logging.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "getopt_long.h"
|
||||
#include "libpq-fe.h"
|
||||
#include "pg_getopt.h"
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#endif
|
||||
|
||||
#include "catalog/pg_class_d.h"
|
||||
#include "common/connect.h"
|
||||
#include "common/logging.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "getopt_long.h"
|
||||
#include "libpq-fe.h"
|
||||
#include "pg_getopt.h"
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "access/xlog_internal.h"
|
||||
#include "common/connect.h"
|
||||
#include "common/fe_memutils.h"
|
||||
#include "common/file_perm.h"
|
||||
#include "common/logging.h"
|
||||
#include "datatype/timestamp.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "port/pg_bswap.h"
|
||||
#include "pqexpbuffer.h"
|
||||
#include "receivelog.h"
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
#include <termios.h>
|
||||
#endif
|
||||
|
||||
#include "common/connect.h"
|
||||
#include "dumputils.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
#include "parallel.h"
|
||||
#include "pg_backup_archiver.h"
|
||||
|
|
|
@ -52,8 +52,8 @@
|
|||
#include "catalog/pg_proc_d.h"
|
||||
#include "catalog/pg_trigger_d.h"
|
||||
#include "catalog/pg_type_d.h"
|
||||
#include "common/connect.h"
|
||||
#include "dumputils.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
#include "getopt_long.h"
|
||||
#include "libpq/libpq-fs.h"
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "common/connect.h"
|
||||
#include "common/file_utils.h"
|
||||
#include "common/logging.h"
|
||||
#include "dumputils.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
#include "getopt_long.h"
|
||||
#include "pg_backup.h"
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "catalog/pg_type_d.h"
|
||||
#include "common/connect.h"
|
||||
#include "datapagemap.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fetch.h"
|
||||
#include "file_ops.h"
|
||||
#include "filemap.h"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include "fe_utils/connect.h"
|
||||
#include "common/connect.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
#include "pg_upgrade.h"
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "common/connect.h"
|
||||
#include "common/logging.h"
|
||||
#include "fe_utils/cancel.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
|
||||
#define ERRCODE_UNDEFINED_TABLE "42P01"
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
#include "catalog/pg_class_d.h"
|
||||
#include "common.h"
|
||||
#include "common/connect.h"
|
||||
#include "common/logging.h"
|
||||
#include "fe_utils/cancel.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/simple_list.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
#include "scripts_parallel.h"
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
#include "catalog/pg_class_d.h"
|
||||
|
||||
#include "common.h"
|
||||
#include "common/connect.h"
|
||||
#include "common/logging.h"
|
||||
#include "fe_utils/cancel.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/simple_list.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
#include "scripts_parallel.h"
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "common/connect.h"
|
||||
#include "fe_utils/cancel.h"
|
||||
#include "fe_utils/connect.h"
|
||||
#include "fe_utils/string_utils.h"
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* src/include/fe_utils/connect.h
|
||||
* src/include/common/connect.h
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
|
@ -10,7 +10,7 @@
|
|||
#include "access/transam.h"
|
||||
#include "catalog/pg_class_d.h"
|
||||
|
||||
#include "fe_utils/connect.h"
|
||||
#include "common/connect.h"
|
||||
#include "libpq-fe.h"
|
||||
#include "pqexpbuffer.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue