PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/reloptions.h"
#include "catalog/pg_foreign_server.h"
#include "catalog/pg_foreign_table.h"
#include "catalog/pg_user_mapping.h"
#include "commands/defrem.h"
#include "commands/extension.h"
#include "postgres_fdw.h"
#include "utils/builtins.h"
#include "utils/varlena.h"
#include "miscadmin.h"
Go to the source code of this file.
Data Structures | |
struct | PgFdwOption |
Typedefs | |
typedef struct PgFdwOption | PgFdwOption |
Functions | |
static void | InitPgFdwOptions (void) |
static bool | is_valid_option (const char *keyword, Oid context) |
static bool | is_libpq_option (const char *keyword) |
PG_FUNCTION_INFO_V1 (postgres_fdw_validator) | |
Datum | postgres_fdw_validator (PG_FUNCTION_ARGS) |
int | ExtractConnectionOptions (List *defelems, const char **keywords, const char **values) |
List * | ExtractExtensionList (const char *extensionsString, bool warnOnMissing) |
Variables | |
static PgFdwOption * | postgres_fdw_options |
static PQconninfoOption * | libpq_options |
typedef struct PgFdwOption PgFdwOption |
int ExtractConnectionOptions | ( | List * | defelems, |
const char ** | keywords, | ||
const char ** | values | ||
) |
Definition at line 347 of file option.c.
References defGetString(), DefElem::defname, i, InitPgFdwOptions(), is_libpq_option(), and lfirst.
Referenced by connect_pg_server().
Definition at line 378 of file option.c.
References ereport, errcode(), errmsg(), ERROR, get_extension_oid(), lappend_oid(), lfirst, list_free(), NIL, OidIsValid, pstrdup(), SplitIdentifierString(), and WARNING.
Referenced by apply_server_options(), and postgres_fdw_validator().
|
static |
Definition at line 192 of file option.c.
References _PQconninfoOption::dispchar, ereport, errcode(), errdetail(), errmsg(), ERROR, InvalidOid, PgFdwOption::is_libpq_opt, PgFdwOption::keyword, _PQconninfoOption::keyword, malloc, PgFdwOption::optcontext, postgres_fdw_options, and PQconndefaults().
Referenced by ExtractConnectionOptions(), and postgres_fdw_validator().
|
static |
Definition at line 326 of file option.c.
References Assert, PgFdwOption::is_libpq_opt, and PgFdwOption::keyword.
Referenced by ExtractConnectionOptions().
Definition at line 307 of file option.c.
References Assert, PgFdwOption::keyword, and PgFdwOption::optcontext.
Referenced by postgres_fdw_validator().
PG_FUNCTION_INFO_V1 | ( | postgres_fdw_validator | ) |
Datum postgres_fdw_validator | ( | PG_FUNCTION_ARGS | ) |
Definition at line 65 of file option.c.
References appendStringInfo(), buf, StringInfoData::data, defGetBoolean(), defGetString(), DefElem::defname, ereport, errcode(), errhint(), errmsg(), ERROR, ExtractExtensionList(), fetch_size, InitPgFdwOptions(), initStringInfo(), is_valid_option(), PgFdwOption::keyword, StringInfoData::len, lfirst, PgFdwOption::optcontext, PG_GETARG_DATUM, PG_GETARG_OID, PG_RETURN_VOID, superuser(), untransformRelOptions(), and val.
|
static |
|
static |
Definition at line 39 of file option.c.
Referenced by InitPgFdwOptions().