mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove pg_collation.collversion.
This model couldn't be extended to cover the default collation, and didn't have any information about the affected database objects when the version changed. Remove, in preparation for a follow-up commit that will add a new mechanism. Author: Thomas Munro <thomas.munro@gmail.com> Reviewed-by: Julien Rouhaud <rjuju123@gmail.com> Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com> Discussion: https://postgr.es/m/CAEepm%3D0uEQCpfq_%2BLYFBdArCe4Ot98t1aR4eYiYTe%3DyavQygiQ%40mail.gmail.com
This commit is contained in:
@ -3224,16 +3224,6 @@ _copyAlterTableCmd(const AlterTableCmd *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static AlterCollationStmt *
|
||||
_copyAlterCollationStmt(const AlterCollationStmt *from)
|
||||
{
|
||||
AlterCollationStmt *newnode = makeNode(AlterCollationStmt);
|
||||
|
||||
COPY_NODE_FIELD(collname);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static AlterDomainStmt *
|
||||
_copyAlterDomainStmt(const AlterDomainStmt *from)
|
||||
{
|
||||
@ -5229,9 +5219,6 @@ copyObjectImpl(const void *from)
|
||||
case T_AlterTableCmd:
|
||||
retval = _copyAlterTableCmd(from);
|
||||
break;
|
||||
case T_AlterCollationStmt:
|
||||
retval = _copyAlterCollationStmt(from);
|
||||
break;
|
||||
case T_AlterDomainStmt:
|
||||
retval = _copyAlterDomainStmt(from);
|
||||
break;
|
||||
|
@ -1107,14 +1107,6 @@ _equalAlterTableCmd(const AlterTableCmd *a, const AlterTableCmd *b)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
_equalAlterCollationStmt(const AlterCollationStmt *a, const AlterCollationStmt *b)
|
||||
{
|
||||
COMPARE_NODE_FIELD(collname);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
_equalAlterDomainStmt(const AlterDomainStmt *a, const AlterDomainStmt *b)
|
||||
{
|
||||
@ -3283,9 +3275,6 @@ equal(const void *a, const void *b)
|
||||
case T_AlterTableCmd:
|
||||
retval = _equalAlterTableCmd(a, b);
|
||||
break;
|
||||
case T_AlterCollationStmt:
|
||||
retval = _equalAlterCollationStmt(a, b);
|
||||
break;
|
||||
case T_AlterDomainStmt:
|
||||
retval = _equalAlterDomainStmt(a, b);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user