1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +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

@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.22 1997/03/12 20:47:32 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.23 1997/04/02 03:57:03 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -119,6 +119,8 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
/* Above should not return. */
else {
if (from) { /* copy from file to database */
if ( rel->rd_rel->relkind == RELKIND_SEQUENCE )
elog (WARN, "You can't change sequence relation %s", relname);
if (pipe) {
if (IsUnderPostmaster) {
ReceiveCopyBegin();