1
0
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:
Vadim B. Mikheev
1997-04-02 03:57:06 +00:00
parent e8647c45d6
commit e276d8a1a6
2 changed files with 9 additions and 2 deletions

View File

@ -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--) {