Suppress timestamp_ops for backwards compatibility with 7.1 pg_dump.
authorTom Lane
Mon, 1 Oct 2001 04:19:18 +0000 (04:19 +0000)
committerTom Lane
Mon, 1 Oct 2001 04:19:18 +0000 (04:19 +0000)
src/backend/parser/gram.y

index 0298742c611278073708dc2cce4c75228b6c7bb4..68c28f1d9b930e024794cff17148a03a8d3384e9 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.254 2001/09/28 08:09:09 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.255 2001/10/01 04:19:18 tgl Exp $
  *
  * HISTORY
  *   AUTHOR            DATE            MAJOR EVENT
@@ -2459,11 +2459,16 @@ opt_class:  class
                     *
                     * Release 7.1 removes lztext_ops, so suppress that too
                     * for a while.  tgl 2000/07/30
+                    *
+                    * Release 7.2 renames timestamp_ops to timestamptz_ops,
+                    * so suppress that too for awhile.  I'm starting to
+                    * think we need a better approach.  tgl 2000/10/01
                     */
                    if (strcmp($1, "network_ops") != 0 &&
                        strcmp($1, "timespan_ops") != 0 &&
                        strcmp($1, "datetime_ops") != 0 &&
-                       strcmp($1, "lztext_ops") != 0)
+                       strcmp($1, "lztext_ops") != 0 &&
+                       strcmp($1, "timestamp_ops") != 0)
                        $$ = $1;
                    else
                        $$ = NULL;