-
Notifications
You must be signed in to change notification settings - Fork 162
/
mysql_pushability.h
35 lines (30 loc) · 1010 Bytes
/
mysql_pushability.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*-------------------------------------------------------------------------
*
* mysql_pushability.h
* prototypes for mysql_pushability.c
*
* Portions Copyright (c) 2022-2024, EnterpriseDB Corporation.
*
* IDENTIFICATION
* mysql_pushability.h
*-------------------------------------------------------------------------
*/
#ifndef MYSQL_PUSHABILITY_H
#define MYSQL_PUSHABILITY_H
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
/*
* NB: Module name must be the same as the MODULE_big configure in the Makefile
* of FDW contrib module. Otherwise, the pushdown object configuration file will
* not be located correctly.
*/
#define FDW_MODULE_NAME "mysql_fdw"
/* Structure to help hold the pushdown object in the hash table */
typedef struct FDWPushdownObject
{
Oid objectId;
ObjectType objectType;
} FDWPushdownObject;
extern bool mysql_check_remote_pushability(Oid objectOid);
extern List *mysql_get_configured_pushdown_objects(bool reload);
#endif /* MYSQL_PUSHABILITY_H */