The initial cloning needs more tests, including data, but that requires
larger changes to several tests than I want to do in the fix commit
itself.
Fixes #69
*maxv = NULL,
*minv = NULL,
*cache,
- *amname = "local";
+ *amname = NULL;
char bufm[100],
bufx[100];
bool cycled;
" CACHE %s%s",
cache, (cycled ? "\n CYCLE" : ""));
- appendPQExpBuffer(query, "\n USING %s", fmtId(amname));
+ /* only dump sequence AM if pg_seqam exists */
+ if (amname)
+ appendPQExpBuffer(query, "\n USING %s", fmtId(amname));
+
appendPQExpBufferStr(query, ";\n");
appendPQExpBuffer(labelq, "SEQUENCE %s", fmtId(tbinfo->dobj.name));