In CREATE SEQUENCE dump, put MINVALUE before MAXVALUE so it reads better.
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 22 Dec 2009 23:27:41 +0000 (23:27 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 22 Dec 2009 23:27:41 +0000 (23:27 +0000)
src/bin/pg_dump/pg_dump.c

index b231e9ae5bff88acbb38eaf7926aaa379ccf83f3..6d6ac1fafe6f54fae008df245513d7180d66ab91 100644 (file)
@@ -12,7 +12,7 @@
  *     by PostgreSQL
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.558 2009/12/19 04:13:30 itagaki Exp $
+ *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.559 2009/12/22 23:27:41 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -11254,16 +11254,16 @@ dumpSequence(Archive *fout, TableInfo *tbinfo)
 
                appendPQExpBuffer(query, "    INCREMENT BY %s\n", incby);
 
-               if (maxv)
-                       appendPQExpBuffer(query, "    MAXVALUE %s\n", maxv);
-               else
-                       appendPQExpBuffer(query, "    NO MAXVALUE\n");
-
                if (minv)
                        appendPQExpBuffer(query, "    MINVALUE %s\n", minv);
                else
                        appendPQExpBuffer(query, "    NO MINVALUE\n");
 
+               if (maxv)
+                       appendPQExpBuffer(query, "    MAXVALUE %s\n", maxv);
+               else
+                       appendPQExpBuffer(query, "    NO MAXVALUE\n");
+
                appendPQExpBuffer(query,
                                                  "    CACHE %s%s",
                                                  cache, (cycled ? "\n    CYCLE" : ""));