extract cluster DistributeObjectOps

refactor/dist-ops-linker
Nils Dijk 2020-02-07 01:37:54 +01:00
parent cc86236fa1
commit f497a7a994
No known key found for this signature in database
GPG Key ID: CA1177EF9434F241
3 changed files with 10 additions and 13 deletions

View File

@ -14,9 +14,18 @@
#include "distributed/commands.h"
#include "distributed/metadata_cache.h"
static List * PreprocessClusterStmt(Node *node, const char *clusterCommand);
static DistributeObjectOps Any_Cluster = {
.deparse = NULL,
.qualify = NULL,
.preprocess = PreprocessClusterStmt,
.postprocess = NULL,
.address = NULL,
};
REGISTER_DISTRIBUTED_OPERATION(ClusterStmt, Any_Cluster);
/* placeholder for PreprocessClusterStmt */
List *
static List *
PreprocessClusterStmt(Node *node, const char *clusterCommand)
{
ClusterStmt *clusterStmt = castNode(ClusterStmt, node);

View File

@ -23,15 +23,6 @@ static DistributeObjectOps NoDistributeOps = {
.address = NULL,
};
static DistributeObjectOps Any_Cluster = {
.deparse = NULL,
.qualify = NULL,
.preprocess = PreprocessClusterStmt,
.postprocess = NULL,
.address = NULL,
};
REGISTER_DISTRIBUTED_OPERATION(ClusterStmt, Any_Cluster);
static DistributeObjectOps Any_Index = {
.deparse = NULL,
.qualify = NULL,

View File

@ -121,9 +121,6 @@ typedef struct DistributedObjectOpsContainer
const DistributeObjectOps * GetDistributeObjectOps(Node *node);
/* cluster.c - forward declarations */
extern List * PreprocessClusterStmt(Node *node, const char *clusterCommand);
/* call.c */
extern bool CallDistributedProcedureRemotely(CallStmt *callStmt, DestReceiver *dest);