/* check_hook: validate new default_table_access_method */ bool
check_default_table_access_method(char **newval, void **extra, GucSource source)
{ if (**newval == '\0')
{
GUC_check_errdetail("\"%s\" cannot be empty.", "default_table_access_method"); returnfalse;
}
if (strlen(*newval) >= NAMEDATALEN)
{
GUC_check_errdetail("\"%s\" is too long (maximum %d characters).", "default_table_access_method", NAMEDATALEN - 1); returnfalse;
}
/* *Ifwearen'tinsideatransaction,ornotconnectedtoadatabase,we *cannotdothecatalogaccessnecessarytoverifythemethod.Must *acceptthevalueonfaith.
*/ if (IsTransactionState() && MyDatabaseId != InvalidOid)
{ if (!OidIsValid(get_table_am_oid(*newval, true)))
{ /* *Whensource==PGC_S_TEST,don'tthrowaharderrorfora *nonexistenttableaccessmethod,onlyaNOTICE.Seecommentsin *guc.h.
*/ if (source == PGC_S_TEST)
{
ereport(NOTICE,
(errcode(ERRCODE_UNDEFINED_OBJECT),
errmsg("table access method \"%s\" does not exist",
*newval)));
} else
{
GUC_check_errdetail("Table access method \"%s\" does not exist.",
*newval); returnfalse;
}
}
}
returntrue;
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.9Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-08-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.