mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	In CREATE SEQUENCE dump, put MINVALUE before MAXVALUE so it reads better.
This commit is contained in:
		@@ -12,7 +12,7 @@
 | 
				
			|||||||
 *	by PostgreSQL
 | 
					 *	by PostgreSQL
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * IDENTIFICATION
 | 
					 * 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);
 | 
							appendPQExpBuffer(query, "    INCREMENT BY %s\n", incby);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (maxv)
 | 
					 | 
				
			||||||
			appendPQExpBuffer(query, "    MAXVALUE %s\n", maxv);
 | 
					 | 
				
			||||||
		else
 | 
					 | 
				
			||||||
			appendPQExpBuffer(query, "    NO MAXVALUE\n");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if (minv)
 | 
							if (minv)
 | 
				
			||||||
			appendPQExpBuffer(query, "    MINVALUE %s\n", minv);
 | 
								appendPQExpBuffer(query, "    MINVALUE %s\n", minv);
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			appendPQExpBuffer(query, "    NO MINVALUE\n");
 | 
								appendPQExpBuffer(query, "    NO MINVALUE\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (maxv)
 | 
				
			||||||
 | 
								appendPQExpBuffer(query, "    MAXVALUE %s\n", maxv);
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
 | 
								appendPQExpBuffer(query, "    NO MAXVALUE\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		appendPQExpBuffer(query,
 | 
							appendPQExpBuffer(query,
 | 
				
			||||||
						  "    CACHE %s%s",
 | 
											  "    CACHE %s%s",
 | 
				
			||||||
						  cache, (cycled ? "\n    CYCLE" : ""));
 | 
											  cache, (cycled ? "\n    CYCLE" : ""));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user