PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/transam.h"
#include "catalog/dependency.h"
#include "postgres_fdw.h"
#include "utils/hsearch.h"
#include "utils/inval.h"
#include "utils/syscache.h"
Go to the source code of this file.
Data Structures | |
struct | ShippableCacheKey |
struct | ShippableCacheEntry |
Functions | |
static void | InvalidateShippableCacheCallback (Datum arg, int cacheid, uint32 hashvalue) |
static void | InitializeShippableCache (void) |
static bool | lookup_shippable (Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo) |
bool | is_builtin (Oid objectId) |
bool | is_shippable (Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo) |
Variables | |
static HTAB * | ShippableCacheHash = NULL |
|
static |
Definition at line 91 of file shippable.c.
References CacheRegisterSyscacheCallback(), ctl, HASH_BLOBS, hash_create(), HASH_ELEM, InvalidateShippableCacheCallback(), and ShippableCacheHash.
Referenced by is_shippable().
Definition at line 65 of file shippable.c.
References elog, ERROR, HASH_REMOVE, hash_search(), hash_seq_init(), hash_seq_search(), ShippableCacheEntry::key, and ShippableCacheHash.
Referenced by InitializeShippableCache().
bool is_builtin | ( | Oid | objectId | ) |
Definition at line 152 of file shippable.c.
References FirstGenbkiObjectId.
Referenced by deparse_type_name(), and is_shippable().
bool is_shippable | ( | Oid | objectId, |
Oid | classId, | ||
PgFdwRelationInfo * | fpinfo | ||
) |
Definition at line 162 of file shippable.c.
References HASH_ENTER, HASH_FIND, hash_search(), InitializeShippableCache(), is_builtin(), sort-test::key, lookup_shippable(), NIL, PgFdwRelationInfo::server, ForeignServer::serverid, ShippableCacheEntry::shippable, PgFdwRelationInfo::shippable_extensions, and ShippableCacheHash.
Referenced by add_foreign_ordered_paths(), foreign_expr_walker(), get_useful_pathkeys_for_relation(), and is_foreign_pathkey().
|
static |
Definition at line 116 of file shippable.c.
References getExtensionOfObject(), list_member_oid(), OidIsValid, and PgFdwRelationInfo::shippable_extensions.
Referenced by is_shippable().
|
static |
Definition at line 34 of file shippable.c.
Referenced by InitializeShippableCache(), InvalidateShippableCacheCallback(), and is_shippable().