enumUtilityProblemKind
enum UtilityProblemKind: string
Public API: explicitly declared with
@visibility public.The rules of PostgreSQL a grammatical utility command can break, in the words of the server.
A %s in a message stands for a name or text the problem is about. Source: https://www.postgresql.org/docs/17/sql-set.html, https://www.postgresql.org/docs/17/sql-explain.html, https://www.postgresql.org/docs/17/sql-vacuum.html, https://www.postgresql.org/docs/17/sql-analyze.html, https://www.postgresql.org/docs/17/sql-cluster.html, https://www.postgresql.org/docs/17/sql-reindex.html, https://www.postgresql.org/docs/17/sql-do.html, https://www.postgresql.org/docs/17/sql-notify.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("SET CATALOG 'd'");
$operation->facts->diagnostics[0]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Problem\UtilityProblemKind::CatalogChangeCases§
case CatalogChange = 'current database cannot be changed'case ZoneIntervalFields = 'time zone interval must be HOUR or HOUR TO MINUTE'case UnknownOption = 'unrecognized %s option "%s"'case UnknownFormat = 'unrecognized value for EXPLAIN option "%s": "%s"'case MissingArgument = '%s requires a parameter'case MissingColumn = 'column "%s" of relation "%s" does not exist'case ColumnsWithoutAnalyze = 'ANALYZE option must be specified when a column list is provided'case NoInlineCode = 'no inline code specified'case RedundantOptions = 'conflicting or redundant options'case NotBoolean = '%s requires a Boolean value'case NotInteger = '%s requires an integer value'case ParallelWithoutValue = 'parallel option requires a value between 0 and 1024'case ParallelRange = 'parallel workers for vacuum must be between 0 and 1024'case ParallelFull = 'VACUUM FULL cannot be performed in parallel'case BufferLimitFull = 'BUFFER_USAGE_LIMIT cannot be specified for VACUUM FULL'case PageSkippingFull = 'VACUUM option DISABLE_PAGE_SKIPPING cannot be used with FULL'case ToastFull = 'PROCESS_TOAST required with VACUUM FULL'case DatabaseStatsTables = 'ONLY_DATABASE_STATS cannot be specified with a list of tables'case DatabaseStatsOptions = 'ONLY_DATABASE_STATS cannot be specified with other VACUUM options'case RequiresAnalyze = 'EXPLAIN option %s requires ANALYZE'case GenericPlanWithAnalyze = 'EXPLAIN options ANALYZE and GENERIC_PLAN cannot be used together'case SystemConcurrently = 'cannot reindex system catalogs concurrently'case PayloadTooLong = 'payload string too long'Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 2
Relations§
Constant reads 25
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::rows() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:69
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::checks() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:92
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::checks() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:100
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::checks() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:104
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\MaintenanceFacts::targets() packages/sql-semantics-postgres/src/Rules/Utility/MaintenanceFacts.php:51
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::derive() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:157
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::derive() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:159
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::derive() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:161
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:57
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:63
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:64
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:65
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:66
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:67
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:70
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:71
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::workers() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:86
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::workers() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:92
- class-const SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::workers() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:97
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:103
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:105
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Reindex::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Reindex.php:83
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Notify::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Notify.php:55
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetSpecialSetting::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Session/SetSpecialSetting.php:70
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetTimeZone::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Session/SetTimeZone.php:67