psql editor temp file extension

Started by Peter Eisentrautover 14 years ago2 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

There was a question recently on a user list about how to configure an
editor to handle psql's editor temp files as SQL files. While this is
doable with an advanced editor by reverse-engineering the file pattern
than psql uses, it would be easier if psql just added an extension
".sql". Since both uses (\e and \ef) are actually SQL files, this
should not be a problem. So I propose the attached patch.

Attachments:

psql-edit-filename.patchtext/x-patch; charset=UTF-8; name=psql-edit-filename.patchDownload+2-2
#2Pavel Stehule
pavel.stehule@gmail.com
In reply to: Peter Eisentraut (#1)
Re: psql editor temp file extension

2011/11/29 Peter Eisentraut <peter_e@gmx.net>:

There was a question recently on a user list about how to configure an
editor to handle psql's editor temp files as SQL files.  While this is
doable with an advanced editor by reverse-engineering the file pattern
than psql uses, it would be easier if psql just added an extension
".sql".  Since both uses (\e and \ef) are actually SQL files, this
should not be a problem.  So I propose the attached patch.

+1

Pavel

Show quoted text

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers