remove_rename_hint.patch

text/plain

Filename: remove_rename_hint.patch
Type: text/plain
Part: 0
Message: wrong hint message for ALTER FOREIGN TABLE

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/commands/tablecmds.c 0 0
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 7660114..09f3f4e 100644
*** a/src/backend/commands/tablecmds.c
--- b/src/backend/commands/tablecmds.c
*************** RenameRelation(Oid myrelid, const char *
*** 2268,2275 ****
  		ereport(ERROR,
  				(errcode(ERRCODE_WRONG_OBJECT_TYPE),
  				 errmsg("\"%s\" is not a foreign table",
! 						RelationGetRelationName(targetrelation)),
! 				 errhint("Use ALTER FOREIGN TABLE instead.")));
  
  	/*
  	 * Don't allow ALTER TABLE on composite types. We want people to use ALTER
--- 2268,2274 ----
  		ereport(ERROR,
  				(errcode(ERRCODE_WRONG_OBJECT_TYPE),
  				 errmsg("\"%s\" is not a foreign table",
! 						RelationGetRelationName(targetrelation))));
  
  	/*
  	 * Don't allow ALTER TABLE on composite types. We want people to use ALTER