reverted: --- b/core/modules/pgsql/src/Driver/Database/pgsql/Connection.php +++ a/core/modules/pgsql/src/Driver/Database/pgsql/Connection.php @@ -9,7 +9,7 @@ use Drupal\Core\Database\StatementInterface; use Drupal\Core\Database\StatementWrapper; +// cSpell:ignore ilike nextval -// cSpell:ignore ilike nextval relname relkind relname. /** * @addtogroup database diff -u b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php --- b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php +++ b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php @@ -11,6 +11,7 @@ // cSpell:ignore contype fillfactor indexname indexrelid indisprimary indkey // cSpell:ignore indrelid nextval nspname regclass relkind relname relnamespace // cSpell:ignore schemaname setval +// cSpell:ignore refobjid refobjsubid objid classid /** * @addtogroup schemaapi @@ -1136,14 +1137,14 @@ } /** - * Retrives the sequence owner object. + * Retrieves the sequence owner object. * * @return array|null * Returns the sequence owner object or NULL if it does not exist.. */ public function getSequenceOwner(): ?array { - $seq_name = $connection->makeSequenceName('users', 'uid'); - $seq_owner = $connection->query("SELECT d.refobjid::regclass as table_name, a.attname as field_name + $seq_name = $this->connection->makeSequenceName('users', 'uid'); + $seq_owner = $this->connection->query("SELECT d.refobjid::regclass as table_name, a.attname as field_name FROM pg_depend d JOIN pg_attribute a ON a.attrelid = d.refobjid AND a.attnum = d.refobjsubid WHERE d.objid = :seq_name::regclass