1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-24 08:52:38 +02:00

don't include libpq-int.h

This commit is contained in:
Yura Sokolov 2022-08-15 15:40:14 +03:00
parent 9f2ded020b
commit f3c0587f19
4 changed files with 7 additions and 3 deletions

View File

@ -2270,6 +2270,7 @@ check_external_for_tablespaces(parray *external_list, PGconn *backup_conn)
PGresult *res;
int i = 0;
int j = 0;
int ntups;
char *tablespace_path = NULL;
char *query = "SELECT pg_catalog.pg_tablespace_location(oid) "
"FROM pg_catalog.pg_tablespace "
@ -2281,7 +2282,8 @@ check_external_for_tablespaces(parray *external_list, PGconn *backup_conn)
if (!res)
elog(ERROR, "Failed to get list of tablespaces");
for (i = 0; i < res->ntups; i++)
ntups = PQntuples(res);
for (i = 0; i < ntups; i++)
{
tablespace_path = PQgetvalue(res, i, 0);
Assert (strlen(tablespace_path) > 0);

View File

@ -238,6 +238,7 @@ catchup_check_tablespaces_existance_in_tbsmapping(PGconn *conn)
{
PGresult *res;
int i;
int ntups;
char *tablespace_path = NULL;
const char *linked_path = NULL;
char *query = "SELECT pg_catalog.pg_tablespace_location(oid) "
@ -249,7 +250,8 @@ catchup_check_tablespaces_existance_in_tbsmapping(PGconn *conn)
if (!res)
elog(ERROR, "Failed to get list of tablespaces");
for (i = 0; i < res->ntups; i++)
ntups = PQntuples(res);
for (i = 0; i < ntups; i++)
{
tablespace_path = PQgetvalue(res, i, 0);
Assert (strlen(tablespace_path) > 0);

View File

@ -13,7 +13,6 @@
#include "postgres_fe.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "access/xlog_internal.h"
#include "utils/pg_crc.h"

View File

@ -4,6 +4,7 @@
#include "pg_probackup.h"
/* sys/stat.h must be included after pg_probackup.h (see problems with compilation for windows described in PGPRO-5750) */
#include <sys/stat.h>
#include <signal.h>
#include "file.h"
#include "storage/checksum.h"