pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Re: Notice about psql !
Date: Tue, 17 Dec 2013 07:04:22 -0800 (PST)
Message-ID: <1387292662322-5783726.post@n5.nabble.com> (raw)
In-Reply-To: <52B063DF.2020508@pinpointresearch.com>
References: <CAK=muZtrjsYnXMsqq84bMf5gLY1ytcCjw4ORu48pD0m-bvpMrA@mail.gmail.com>
	<52B063DF.2020508@pinpointresearch.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Steve Crawford wrote
> On 12/16/2013 09:29 PM, Doom.zhou wrote:
>> HI guys
>>     when edit some sql in psql's \e feature then quit edit
>> it is performed !!!!
>>
>>
>> it's dangerous isn't it ?
>>
> It is *extremely* dangerous. But neither more nor less dangerous than 
> any interface that allows you to submit SQL directly to the server.
> 
> The \e command merely offers an alternative to the command-line editing 
> to craft your SQL statements and is very convenient when you are editing 
> a long statement. When done, you exit and the command is submitted just 
> as it is submitted when you press 
> <Enter>
>  at the command-line.
> 
> If you change your mind while in the editor, just clear the text in the 
> editor and exit. Nothing will be run.

Or

BEGIN; <Enter>

\e <Enter>

COMMIT | ROLLBACK ; <Enter>

David J.







--
View this message in context: http://postgresql.1045698.n5.nabble.com/Notice-about-psql-tp5783659p5783726.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


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



view thread (5+ messages)  latest in thread

Message-ID: <1387292662322-5783726.post@n5.nabble.com>
Permalink:  ../1387292662322-5783726.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1387292662322-5783726.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: polobo@yahoo.com
  Subject: Re: Notice about psql !
  In-Reply-To: <1387292662322-5783726.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox