Branch data Line data Source code
1 : : /*-------------------------------------------------------------------------
2 : : *
3 : : * option.c
4 : : * FDW and GUC option handling for postgres_fdw
5 : : *
6 : : * Portions Copyright (c) 2012-2026, PostgreSQL Global Development Group
7 : : *
8 : : * IDENTIFICATION
9 : : * contrib/postgres_fdw/option.c
10 : : *
11 : : *-------------------------------------------------------------------------
12 : : */
13 : : #include "postgres.h"
14 : :
15 : : #include "access/reloptions.h"
16 : : #include "catalog/pg_foreign_server.h"
17 : : #include "catalog/pg_foreign_table.h"
18 : : #include "catalog/pg_user_mapping.h"
19 : : #include "commands/defrem.h"
20 : : #include "commands/extension.h"
21 : : #include "libpq/libpq-be.h"
22 : : #include "postgres_fdw.h"
23 : : #include "utils/guc.h"
24 : : #include "utils/memutils.h"
25 : : #include "utils/varlena.h"
26 : :
27 : : /*
28 : : * Describes the valid options for objects that this wrapper uses.
29 : : */
30 : : typedef struct PgFdwOption
31 : : {
32 : : const char *keyword;
33 : : Oid optcontext; /* OID of catalog in which option may appear */
34 : : bool is_libpq_opt; /* true if it's used in libpq */
35 : : } PgFdwOption;
36 : :
37 : : /*
38 : : * Valid options for postgres_fdw.
39 : : * Allocated and filled in InitPgFdwOptions.
40 : : */
41 : : static PgFdwOption *postgres_fdw_options;
42 : :
43 : : /*
44 : : * GUC parameters
45 : : */
46 : : char *pgfdw_application_name = NULL;
47 : :
48 : : /*
49 : : * Helper functions
50 : : */
51 : : static void InitPgFdwOptions(void);
52 : : static bool is_valid_option(const char *keyword, Oid context);
53 : : static bool is_libpq_option(const char *keyword);
54 : :
55 : : #include "miscadmin.h"
56 : :
57 : : /*
58 : : * Validate the generic options given to a FOREIGN DATA WRAPPER, SERVER,
59 : : * USER MAPPING or FOREIGN TABLE that uses postgres_fdw.
60 : : *
61 : : * Raise an ERROR if the option or its value is considered invalid.
62 : : */
63 : 27 : PG_FUNCTION_INFO_V1(postgres_fdw_validator);
64 : :
65 : : Datum
66 : 349 : postgres_fdw_validator(PG_FUNCTION_ARGS)
67 : : {
68 : 349 : List *options_list = untransformRelOptions(PG_GETARG_DATUM(0));
69 : 349 : Oid catalog = PG_GETARG_OID(1);
70 : : ListCell *cell;
71 : :
72 : : /* Build our options lists if we didn't yet. */
73 : 349 : InitPgFdwOptions();
74 : :
75 : : /*
76 : : * Check that only options supported by postgres_fdw, and allowed for the
77 : : * current object type, are given.
78 : : */
79 [ + + + + : 1132 : foreach(cell, options_list)
+ + ]
80 : : {
81 : 801 : DefElem *def = (DefElem *) lfirst(cell);
82 : :
83 [ + + ]: 801 : if (!is_valid_option(def->defname, catalog))
84 : : {
85 : : /*
86 : : * Unknown option specified, complain about it. Provide a hint
87 : : * with a valid option that looks similar, if there is one.
88 : : */
89 : : PgFdwOption *opt;
90 : : const char *closest_match;
91 : : ClosestMatchState match_state;
92 : 9 : bool has_valid_options = false;
93 : :
94 : 9 : initClosestMatch(&match_state, def->defname, 4);
95 [ + + ]: 648 : for (opt = postgres_fdw_options; opt->keyword; opt++)
96 : : {
97 [ + + ]: 639 : if (catalog == opt->optcontext)
98 : : {
99 : 240 : has_valid_options = true;
100 : 240 : updateClosestMatch(&match_state, opt->keyword);
101 : : }
102 : : }
103 : :
104 : 9 : closest_match = getClosestMatch(&match_state);
105 [ + - + + : 9 : ereport(ERROR,
+ + ]
106 : : (errcode(ERRCODE_FDW_INVALID_OPTION_NAME),
107 : : errmsg("invalid option \"%s\"", def->defname),
108 : : has_valid_options ? closest_match ?
109 : : errhint("Perhaps you meant the option \"%s\".",
110 : : closest_match) : 0 :
111 : : errhint("There are no valid options in this context.")));
112 : : }
113 : :
114 : : /*
115 : : * Validate option value, when we can do so without any context.
116 : : */
117 [ + + ]: 792 : if (strcmp(def->defname, "use_remote_estimate") == 0 ||
118 [ + + ]: 752 : strcmp(def->defname, "updatable") == 0 ||
119 [ + + ]: 745 : strcmp(def->defname, "truncatable") == 0 ||
120 [ + + ]: 740 : strcmp(def->defname, "async_capable") == 0 ||
121 [ + + ]: 736 : strcmp(def->defname, "parallel_commit") == 0 ||
122 [ + + ]: 732 : strcmp(def->defname, "parallel_abort") == 0 ||
123 [ + + ]: 728 : strcmp(def->defname, "keep_connections") == 0 ||
124 [ + + ]: 710 : strcmp(def->defname, "import_stats") == 0 ||
125 [ + + ]: 706 : strcmp(def->defname, "use_scram_passthrough") == 0)
126 : : {
127 : : /* these accept only boolean values */
128 : 91 : (void) defGetBoolean(def);
129 : : }
130 [ + + ]: 701 : else if (strcmp(def->defname, "fdw_startup_cost") == 0 ||
131 [ + + ]: 691 : strcmp(def->defname, "fdw_tuple_cost") == 0)
132 : 17 : {
133 : : /*
134 : : * These must have a floating point value greater than or equal to
135 : : * zero.
136 : : */
137 : : char *value;
138 : : double real_val;
139 : : bool is_parsed;
140 : :
141 : 19 : value = defGetString(def);
142 : 19 : is_parsed = parse_real(value, &real_val, 0, NULL);
143 : :
144 [ + + ]: 19 : if (!is_parsed)
145 [ + - ]: 2 : ereport(ERROR,
146 : : (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
147 : : errmsg("invalid value for floating point option \"%s\": %s",
148 : : def->defname, value)));
149 : :
150 [ - + ]: 17 : if (real_val < 0)
151 [ # # ]: 0 : ereport(ERROR,
152 : : (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
153 : : errmsg("\"%s\" must be a floating point value greater than or equal to zero",
154 : : def->defname)));
155 : : }
156 [ + + ]: 682 : else if (strcmp(def->defname, "extensions") == 0)
157 : : {
158 : : /* check list syntax, warn about uninstalled extensions */
159 : 33 : (void) ExtractExtensionList(defGetString(def), true);
160 : : }
161 [ + + ]: 649 : else if (strcmp(def->defname, "fetch_size") == 0 ||
162 [ + + ]: 644 : strcmp(def->defname, "batch_size") == 0)
163 : 25 : {
164 : : char *value;
165 : : int int_val;
166 : : bool is_parsed;
167 : :
168 : 27 : value = defGetString(def);
169 : 27 : is_parsed = parse_int(value, &int_val, 0, NULL);
170 : :
171 [ + + ]: 27 : if (!is_parsed)
172 [ + - ]: 2 : ereport(ERROR,
173 : : (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
174 : : errmsg("invalid value for integer option \"%s\": %s",
175 : : def->defname, value)));
176 : :
177 [ - + ]: 25 : if (int_val <= 0)
178 [ # # ]: 0 : ereport(ERROR,
179 : : (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
180 : : errmsg("\"%s\" must be an integer value greater than zero",
181 : : def->defname)));
182 : : }
183 [ + + ]: 622 : else if (strcmp(def->defname, "password_required") == 0)
184 : : {
185 : 6 : bool pw_required = defGetBoolean(def);
186 : :
187 : : /*
188 : : * Only the superuser may set this option on a user mapping, or
189 : : * alter a user mapping on which this option is set. We allow a
190 : : * user to clear this option if it's set - in fact, we don't have
191 : : * a choice since we can't see the old mapping when validating an
192 : : * alter.
193 : : */
194 [ + + + + ]: 6 : if (!superuser() && !pw_required)
195 [ + - ]: 1 : ereport(ERROR,
196 : : (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
197 : : errmsg("password_required=false is superuser-only"),
198 : : errhint("User mappings with the password_required option set to false may only be created or modified by the superuser.")));
199 : : }
200 [ + + ]: 616 : else if (strcmp(def->defname, "sslcert") == 0 ||
201 [ + + ]: 604 : strcmp(def->defname, "sslkey") == 0)
202 : : {
203 : : /* similarly for sslcert / sslkey on user mapping */
204 [ + + + + ]: 24 : if (catalog == UserMappingRelationId && !superuser())
205 [ + - ]: 2 : ereport(ERROR,
206 : : (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
207 : : errmsg("sslcert and sslkey are superuser-only"),
208 : : errhint("User mappings with the sslcert or sslkey options set may only be created or modified by the superuser.")));
209 : : }
210 [ + + ]: 592 : else if (strcmp(def->defname, "analyze_sampling") == 0)
211 : : {
212 : : char *value;
213 : :
214 : 7 : value = defGetString(def);
215 : :
216 : : /* we recognize off/auto/random/system/bernoulli */
217 [ + + ]: 7 : if (strcmp(value, "off") != 0 &&
218 [ + + ]: 5 : strcmp(value, "auto") != 0 &&
219 [ + + ]: 4 : strcmp(value, "random") != 0 &&
220 [ + + ]: 3 : strcmp(value, "system") != 0 &&
221 [ + + ]: 2 : strcmp(value, "bernoulli") != 0)
222 [ + - ]: 1 : ereport(ERROR,
223 : : (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
224 : : errmsg("invalid value for string option \"%s\": %s",
225 : : def->defname, value)));
226 : : }
227 : : }
228 : :
229 : 331 : PG_RETURN_VOID();
230 : : }
231 : :
232 : : /*
233 : : * Initialize option lists.
234 : : */
235 : : static void
236 : 543 : InitPgFdwOptions(void)
237 : : {
238 : : int num_libpq_opts;
239 : : PQconninfoOption *libpq_options;
240 : : PQconninfoOption *lopt;
241 : : PgFdwOption *options;
242 : : PgFdwOption *popt;
243 : :
244 : : /* non-libpq FDW-specific FDW options */
245 : : static const PgFdwOption non_libpq_options[] = {
246 : : {"schema_name", ForeignTableRelationId, false},
247 : : {"table_name", ForeignTableRelationId, false},
248 : : {"column_name", AttributeRelationId, false},
249 : : /* use_remote_estimate is available on both server and table */
250 : : {"use_remote_estimate", ForeignServerRelationId, false},
251 : : {"use_remote_estimate", ForeignTableRelationId, false},
252 : : /* cost factors */
253 : : {"fdw_startup_cost", ForeignServerRelationId, false},
254 : : {"fdw_tuple_cost", ForeignServerRelationId, false},
255 : : /* shippable extensions */
256 : : {"extensions", ForeignServerRelationId, false},
257 : : /* updatable is available on both server and table */
258 : : {"updatable", ForeignServerRelationId, false},
259 : : {"updatable", ForeignTableRelationId, false},
260 : : /* truncatable is available on both server and table */
261 : : {"truncatable", ForeignServerRelationId, false},
262 : : {"truncatable", ForeignTableRelationId, false},
263 : : /* fetch_size is available on both server and table */
264 : : {"fetch_size", ForeignServerRelationId, false},
265 : : {"fetch_size", ForeignTableRelationId, false},
266 : : /* batch_size is available on both server and table */
267 : : {"batch_size", ForeignServerRelationId, false},
268 : : {"batch_size", ForeignTableRelationId, false},
269 : : /* async_capable is available on both server and table */
270 : : {"async_capable", ForeignServerRelationId, false},
271 : : {"async_capable", ForeignTableRelationId, false},
272 : : {"parallel_commit", ForeignServerRelationId, false},
273 : : {"parallel_abort", ForeignServerRelationId, false},
274 : : {"keep_connections", ForeignServerRelationId, false},
275 : : {"password_required", UserMappingRelationId, false},
276 : :
277 : : /* sampling is available on both server and table */
278 : : {"analyze_sampling", ForeignServerRelationId, false},
279 : : {"analyze_sampling", ForeignTableRelationId, false},
280 : : /* import_stats is available on both server and table */
281 : : {"import_stats", ForeignServerRelationId, false},
282 : : {"import_stats", ForeignTableRelationId, false},
283 : :
284 : : {"use_scram_passthrough", ForeignServerRelationId, false},
285 : : {"use_scram_passthrough", UserMappingRelationId, false},
286 : :
287 : : /*
288 : : * sslcert and sslkey are in fact libpq options, but we repeat them
289 : : * here to allow them to appear in both foreign server context (when
290 : : * we generate libpq options) and user mapping context (from here).
291 : : */
292 : : {"sslcert", UserMappingRelationId, true},
293 : : {"sslkey", UserMappingRelationId, true},
294 : :
295 : : /*
296 : : * gssdelegation is also a libpq option but should be allowed in a
297 : : * user mapping context too
298 : : */
299 : : {"gssdelegation", UserMappingRelationId, true},
300 : :
301 : : {NULL, InvalidOid, false}
302 : : };
303 : :
304 : : /* Prevent redundant initialization. */
305 [ + + ]: 543 : if (postgres_fdw_options)
306 : 507 : return;
307 : :
308 : : /*
309 : : * Get list of valid libpq options.
310 : : *
311 : : * To avoid unnecessary work, we get the list once and use it throughout
312 : : * the lifetime of this backend process. Hence, we'll allocate it in
313 : : * TopMemoryContext.
314 : : */
315 : 36 : libpq_options = PQconndefaults();
316 [ - + ]: 36 : if (!libpq_options) /* assume reason for failure is OOM */
317 [ # # ]: 0 : ereport(ERROR,
318 : : (errcode(ERRCODE_FDW_OUT_OF_MEMORY),
319 : : errmsg("out of memory"),
320 : : errdetail("Could not get libpq's default connection options.")));
321 : :
322 : : /* Count how many libpq options are available. */
323 : 36 : num_libpq_opts = 0;
324 [ + + ]: 1872 : for (lopt = libpq_options; lopt->keyword; lopt++)
325 : 1836 : num_libpq_opts++;
326 : :
327 : : /*
328 : : * Construct an array which consists of all valid options for
329 : : * postgres_fdw, by appending FDW-specific options to libpq options.
330 : : */
331 : : options = (PgFdwOption *)
332 : 36 : MemoryContextAlloc(TopMemoryContext,
333 : 36 : sizeof(PgFdwOption) * num_libpq_opts +
334 : : sizeof(non_libpq_options));
335 : :
336 : 36 : popt = options;
337 [ + + ]: 1872 : for (lopt = libpq_options; lopt->keyword; lopt++)
338 : : {
339 : : /* Hide debug options, as well as settings we override internally. */
340 [ + + ]: 1836 : if (strchr(lopt->dispchar, 'D') ||
341 [ + + ]: 1692 : strcmp(lopt->keyword, "fallback_application_name") == 0 ||
342 [ + + ]: 1656 : strcmp(lopt->keyword, "client_encoding") == 0)
343 : 216 : continue;
344 : :
345 : : /*
346 : : * Disallow OAuth options for now, since the builtin flow communicates
347 : : * on stderr by default and can't cache tokens yet.
348 : : */
349 [ + + ]: 1620 : if (strncmp(lopt->keyword, "oauth_", strlen("oauth_")) == 0)
350 : 180 : continue;
351 : :
352 : 2880 : popt->keyword = MemoryContextStrdup(TopMemoryContext,
353 : 1440 : lopt->keyword);
354 : :
355 : : /*
356 : : * "user" and any secret options are allowed only on user mappings.
357 : : * Everything else is a server option.
358 : : */
359 [ + + + + ]: 1440 : if (strcmp(lopt->keyword, "user") == 0 || strchr(lopt->dispchar, '*'))
360 : 108 : popt->optcontext = UserMappingRelationId;
361 : : else
362 : 1332 : popt->optcontext = ForeignServerRelationId;
363 : 1440 : popt->is_libpq_opt = true;
364 : :
365 : 1440 : popt++;
366 : : }
367 : :
368 : : /* Done with libpq's output structure. */
369 : 36 : PQconninfoFree(libpq_options);
370 : :
371 : : /* Append FDW-specific options and dummy terminator. */
372 : 36 : memcpy(popt, non_libpq_options, sizeof(non_libpq_options));
373 : :
374 : 36 : postgres_fdw_options = options;
375 : : }
376 : :
377 : : /*
378 : : * Check whether the given option is one of the valid postgres_fdw options.
379 : : * context is the Oid of the catalog holding the object the option is for.
380 : : */
381 : : static bool
382 : 801 : is_valid_option(const char *keyword, Oid context)
383 : : {
384 : : PgFdwOption *opt;
385 : :
386 : : Assert(postgres_fdw_options); /* must be initialized already */
387 : :
388 [ + + ]: 25598 : for (opt = postgres_fdw_options; opt->keyword; opt++)
389 : : {
390 [ + + + + ]: 25589 : if (context == opt->optcontext && strcmp(opt->keyword, keyword) == 0)
391 : 792 : return true;
392 : : }
393 : :
394 : 9 : return false;
395 : : }
396 : :
397 : : /*
398 : : * Check whether the given option is one of the valid libpq options.
399 : : */
400 : : static bool
401 : 366 : is_libpq_option(const char *keyword)
402 : : {
403 : : PgFdwOption *opt;
404 : :
405 : : Assert(postgres_fdw_options); /* must be initialized already */
406 : :
407 [ + + ]: 10760 : for (opt = postgres_fdw_options; opt->keyword; opt++)
408 : : {
409 [ + + + + ]: 10640 : if (opt->is_libpq_opt && strcmp(opt->keyword, keyword) == 0)
410 : 246 : return true;
411 : : }
412 : :
413 : 120 : return false;
414 : : }
415 : :
416 : : /*
417 : : * Generate key-value arrays which include only libpq options from the
418 : : * given list (which can contain any kind of options). Caller must have
419 : : * allocated large-enough arrays. Returns number of options found.
420 : : */
421 : : int
422 : 194 : ExtractConnectionOptions(List *defelems, const char **keywords,
423 : : const char **values)
424 : : {
425 : : ListCell *lc;
426 : : int i;
427 : :
428 : : /* Build our options lists if we didn't yet. */
429 : 194 : InitPgFdwOptions();
430 : :
431 : 194 : i = 0;
432 [ + + + + : 560 : foreach(lc, defelems)
+ + ]
433 : : {
434 : 366 : DefElem *d = (DefElem *) lfirst(lc);
435 : :
436 [ + + ]: 366 : if (is_libpq_option(d->defname))
437 : : {
438 : 246 : keywords[i] = d->defname;
439 : 246 : values[i] = defGetString(d);
440 : 246 : i++;
441 : : }
442 : : }
443 : 194 : return i;
444 : : }
445 : :
446 : : /*
447 : : * Parse a comma-separated string and return a List of the OIDs of the
448 : : * extensions named in the string. If any names in the list cannot be
449 : : * found, report a warning if warnOnMissing is true, else just silently
450 : : * ignore them.
451 : : */
452 : : List *
453 : 1020 : ExtractExtensionList(const char *extensionsString, bool warnOnMissing)
454 : : {
455 : 1020 : List *extensionOids = NIL;
456 : : List *extlist;
457 : : ListCell *lc;
458 : :
459 : : /* SplitIdentifierString scribbles on its input, so pstrdup first */
460 [ + + ]: 1020 : if (!SplitIdentifierString(pstrdup(extensionsString), ',', &extlist))
461 : : {
462 : : /* syntax error in name list */
463 [ + - ]: 1 : ereport(ERROR,
464 : : (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
465 : : errmsg("parameter \"%s\" must be a list of extension names",
466 : : "extensions")));
467 : : }
468 : :
469 [ + - + + : 2039 : foreach(lc, extlist)
+ + ]
470 : : {
471 : 1020 : const char *extension_name = (const char *) lfirst(lc);
472 : 1020 : Oid extension_oid = get_extension_oid(extension_name, true);
473 : :
474 [ + + ]: 1020 : if (OidIsValid(extension_oid))
475 : : {
476 : 1018 : extensionOids = lappend_oid(extensionOids, extension_oid);
477 : : }
478 [ + - ]: 2 : else if (warnOnMissing)
479 : : {
480 [ + - ]: 2 : ereport(WARNING,
481 : : (errcode(ERRCODE_UNDEFINED_OBJECT),
482 : : errmsg("extension \"%s\" is not installed",
483 : : extension_name)));
484 : : }
485 : : }
486 : :
487 : 1019 : list_free(extlist);
488 : 1019 : return extensionOids;
489 : : }
490 : :
491 : : /*
492 : : * Replace escape sequences beginning with % character in the given
493 : : * application_name with status information, and return it.
494 : : *
495 : : * This function always returns a palloc'd string, so the caller is
496 : : * responsible for pfreeing it.
497 : : */
498 : : char *
499 : 28 : process_pgfdw_appname(const char *appname)
500 : : {
501 : : const char *p;
502 : : StringInfoData buf;
503 : :
504 : 28 : initStringInfo(&buf);
505 : :
506 [ + + ]: 408 : for (p = appname; *p != '\0'; p++)
507 : : {
508 [ + + ]: 380 : if (*p != '%')
509 : : {
510 : : /* literal char, just copy */
511 : 371 : appendStringInfoChar(&buf, *p);
512 : 371 : continue;
513 : : }
514 : :
515 : : /* must be a '%', so skip to the next char */
516 : 9 : p++;
517 [ - + ]: 9 : if (*p == '\0')
518 : 0 : break; /* format error - ignore it */
519 [ + + ]: 9 : else if (*p == '%')
520 : : {
521 : : /* string contains %% */
522 : 1 : appendStringInfoChar(&buf, '%');
523 : 1 : continue;
524 : : }
525 : :
526 : : /* process the option */
527 [ + + + + : 8 : switch (*p)
+ + - ]
528 : : {
529 : 1 : case 'a':
530 : 1 : appendStringInfoString(&buf, application_name);
531 : 1 : break;
532 : 2 : case 'c':
533 : 2 : appendStringInfo(&buf, "%" PRIx64 ".%x", MyStartTime, MyProcPid);
534 : 2 : break;
535 : 2 : case 'C':
536 : 2 : appendStringInfoString(&buf, cluster_name);
537 : 2 : break;
538 : 1 : case 'd':
539 [ + - ]: 1 : if (MyProcPort)
540 : : {
541 : 1 : const char *dbname = MyProcPort->database_name;
542 : :
543 [ + - ]: 1 : if (dbname)
544 : 1 : appendStringInfoString(&buf, dbname);
545 : : else
546 : 0 : appendStringInfoString(&buf, "[unknown]");
547 : : }
548 : 1 : break;
549 : 1 : case 'p':
550 : 1 : appendStringInfo(&buf, "%d", MyProcPid);
551 : 1 : break;
552 : 1 : case 'u':
553 [ + - ]: 1 : if (MyProcPort)
554 : : {
555 : 1 : const char *username = MyProcPort->user_name;
556 : :
557 [ + - ]: 1 : if (username)
558 : 1 : appendStringInfoString(&buf, username);
559 : : else
560 : 0 : appendStringInfoString(&buf, "[unknown]");
561 : : }
562 : 1 : break;
563 : 0 : default:
564 : : /* format error - ignore it */
565 : 0 : break;
566 : : }
567 : : }
568 : :
569 : 28 : return buf.data;
570 : : }
571 : :
572 : : /*
573 : : * Module load callback
574 : : */
575 : : void
576 : 39 : _PG_init(void)
577 : : {
578 : : /*
579 : : * Unlike application_name GUC, don't set GUC_IS_NAME flag nor check_hook
580 : : * to allow postgres_fdw.application_name to be any string more than
581 : : * NAMEDATALEN characters and to include non-ASCII characters. Instead,
582 : : * remote server truncates application_name of remote connection to less
583 : : * than NAMEDATALEN and replaces any non-ASCII characters in it with a '?'
584 : : * character.
585 : : */
586 : 39 : DefineCustomStringVariable("postgres_fdw.application_name",
587 : : "Sets the application name to be used on the remote server.",
588 : : NULL,
589 : : &pgfdw_application_name,
590 : : NULL,
591 : : PGC_USERSET,
592 : : 0,
593 : : NULL,
594 : : NULL,
595 : : NULL);
596 : :
597 : 39 : MarkGUCPrefixReserved("postgres_fdw");
598 : 39 : }
|