mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Ignore RECHECK in CREATE OPERATOR CLASS, just throwing a NOTICE, instead of
throwing an error as 8.4 had been doing. The error interfered with porting old database definitions (particularly for pg_migrator) without really buying any safety. Per bug #4817 and subsequent discussion.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.663 2009/04/28 09:09:41 heikki Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.664 2009/05/27 20:42:29 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@@ -3639,9 +3639,14 @@ opt_opfamily: FAMILY any_name { $$ = $2; }
|
||||
|
||||
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;
|
||||
|
Reference in New Issue
Block a user