Content-Length: 264815 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b6f9834a9e8dfab1bd503ec0357bb812a18018a2

FB psql: Make temporary editor files have .sql extension · postgrespro/postgres_cluster@b6f9834 · GitHub
Skip to content

Commit b6f9834

Browse files
committed
psql: Make temporary editor files have .sql extension
This gives editors a better chance to treat these files as the SQL files that they are.
1 parent 0de93a9 commit b6f9834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,10 +1879,10 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf,
18791879
*/
18801880
#endif
18811881
#ifndef WIN32
1882-
snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d", tmpdir,
1882+
snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d.sql", tmpdir,
18831883
"/", (int) getpid());
18841884
#else
1885-
snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d", tmpdir,
1885+
snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d.sql", tmpdir,
18861886
"" /* trailing separator already present */ , (int) getpid());
18871887
#endif
18881888

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/b6f9834a9e8dfab1bd503ec0357bb812a18018a2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy