MCPcopy Create free account
hub / github.com/apache/cloudberry / ExtractErrorLogPersistent

Function ExtractErrorLogPersistent

src/backend/commands/exttablecmds.c:836–852  ·  view source on GitHub ↗

* ExtractErrorLogPersistent - load LOG ERRORS PERSISTENTLY from options. */

Source from the content-addressed store, hash-verified

834 * ExtractErrorLogPersistent - load LOG ERRORS PERSISTENTLY from options.
835 */
836static bool
837ExtractErrorLogPersistent(List **options)
838{
839 ListCell *cell;
840
841 foreach(cell, *options)
842 {
843 DefElem *def = (DefElem *) lfirst(cell);
844 if (pg_strcasecmp(def->defname, "error_log_persistent") == 0)
845 {
846 *options = list_delete_cell(*options, cell);
847 /* these accept only boolean values */
848 return defGetBoolean(def);
849 }
850 }
851 return false;
852}
853
854/*
855 * Generate a list of ExtTableEntry options

Callers 1

DefineExternalRelationFunction · 0.85

Calls 4

pg_strcasecmpFunction · 0.85
list_delete_cellFunction · 0.85
defGetBooleanFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected