Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10932ed commit 0717f2fCopy full SHA for 0717f2f
src/backend/commands/collationcmds.c
@@ -366,6 +366,11 @@ AlterCollation(AlterCollationStmt *stmt)
366
rel = table_open(CollationRelationId, RowExclusiveLock);
367
collOid = get_collation_oid(stmt->collname, false);
368
369
+ if (collOid == DEFAULT_COLLATION_OID)
370
+ ereport(ERROR,
371
+ (errmsg("cannot refresh version of default collation"),
372
+ errhint("Use ALTER DATABASE ... REFRESH COLLATION VERSION instead.")));
373
+
374
if (!pg_collation_ownercheck(collOid, GetUserId()))
375
aclcheck_error(ACLCHECK_NOT_OWNER, OBJECT_COLLATION,
376
NameListToString(stmt->collname));
0 commit comments