mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Can't COPY TO sequence relation.
Can't inherits from ...
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.5 1997/01/10 20:17:11 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.6 1997/04/02 03:57:06 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -264,6 +264,11 @@ MergeAttributes(List *schema, List *supers)
|
||||
"MergeAttr: Can't inherit from non-existent superclass '%s'",
|
||||
name);
|
||||
}
|
||||
if ( relation->rd_rel->relkind == 'S' )
|
||||
{
|
||||
elog(WARN, "MergeAttr: Can't inherit from sequence superclass '%s'",
|
||||
name);
|
||||
}
|
||||
tupleDesc = RelationGetTupleDescriptor(relation);
|
||||
|
||||
for (attrno = relation->rd_rel->relnatts - 1; attrno >= 0; attrno--) {
|
||||
|
Reference in New Issue
Block a user