28 pg_fatal(
"Cannot upgrade to/from the same system catalog version when\n"
29 "using tablespaces.");
49 "SELECT pg_catalog.pg_tablespace_location(oid) AS spclocation "
50 "FROM pg_catalog.pg_tablespace "
51 "WHERE spcname != 'pg_default' AND "
52 " spcname != 'pg_global'");
83 "tablespace directory \"%s\" does not exist",
87 "could not stat tablespace directory \"%s\": %m",
92 "tablespace path \"%s\" is not a directory",
static void set_tablespace_directory_suffix(ClusterInfo *cluster)
void init_tablespaces(void)
static void get_tablespace_paths(void)
void cluster(ParseState *pstate, ClusterStmt *stmt, bool isTopLevel)
static void PGresult * res
void PQfinish(PGconn *conn)
char * PQgetvalue(const PGresult *res, int tup_num, int field_num)
int PQntuples(const PGresult *res)
int PQfnumber(const PGresult *res, const char *field_name)
void * pg_malloc(size_t size)
char * pg_strdup(const char *in)
PGconn * connectToServer(ClusterInfo *cluster, const char *db_name)
PGresult * executeQueryOrDie(PGconn *conn, const char *fmt,...) pg_attribute_printf(2
void report_status(eLogType type, const char *fmt,...) pg_attribute_printf(2
char * psprintf(const char *fmt,...)
const char * tablespace_suffix