psql-watch.diff

text/x-patch

Filename: psql-watch.diff
Type: text/x-patch
Part: 0
Message: Separate the result of \watch for each query execution (psql)

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/bin/psql/common.c 2 0
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index d65b9a124f..ee9442d0a6 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -646,10 +646,12 @@ PSQLexecWatch(const char *query, const printQueryOpt *opt, FILE *printQueryFout)
 	switch (PQresultStatus(res))
 	{
 		case PGRES_TUPLES_OK:
+			fprintf(fout, "\f\n");
 			printQuery(res, opt, fout, false, pset.logfile);
 			break;
 
 		case PGRES_COMMAND_OK:
+			fprintf(fout, "\f\n");
 			fprintf(fout, "%s\n%s\n\n", opt->title, PQcmdStatus(res));
 			break;