psql editor temp file extension

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: psql editor temp file extension
Date: 2011-11-29 04:46:02
Message-ID: 1322541962.4595.4.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Attachment Content-Type Size
psql-edit-filename.patch text/x-patch 655 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2011-11-29 04:50:33 Re: psql editor temp file extension
Previous Message Peter Eisentraut 2011-11-29 04:33:10 Re: Misleading CREATE TABLE error