File: mysql_pushability.h

package info (click to toggle)
postgresql-mysql-fdw 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,272 kB
  • sloc: ansic: 5,926; sql: 1,987; sh: 84; makefile: 42
file content (35 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download
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 */