opt_recheck: RECHECK
{
- ereport(ERROR,
+ /*
+ * RECHECK no longer does anything in opclass definitions,
+ * but we still accept it to ease porting of old database
+ * dumps.
+ */
+ ereport(NOTICE,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("RECHECK is no longer supported"),
+ errmsg("RECHECK is no longer required"),
errhint("Update your data type."),
scanner_errposition(@1)));
$$ = TRUE;
* pg_depend entries.
*
* XXX RECHECK is gone as of 8.4, but we'll still print it if dumping
- * an older server's table in which it is used. Would it be better
- * to silently ignore it?
+ * an older server's opclass in which it is used. This is to avoid
+ * hard-to-detect breakage if a newer pg_dump is used to dump from
+ * an older server and then reload into that old version. This can
+ * go away once 8.3 is so old as to not be of interest to anyone.
*/
appendPQExpBuffer(query, "SELECT amopstrategy, false AS amopreqcheck, "
"amopopr::pg_catalog.regoperator "
{
/*
* XXX RECHECK is gone as of 8.4, but we'll still print it if dumping
- * an older server's table in which it is used. Would it be better
- * to silently ignore it?
+ * an older server's opclass in which it is used. This is to avoid
+ * hard-to-detect breakage if a newer pg_dump is used to dump from
+ * an older server and then reload into that old version. This can
+ * go away once 8.3 is so old as to not be of interest to anyone.
*/
appendPQExpBuffer(query, "SELECT amopstrategy, false AS amopreqcheck, "
"amopopr::pg_catalog.regoperator "