pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Doom.zhou <zzepaigh@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Notice about psql !
Date: Tue, 17 Dec 2013 06:46:55 -0800
Message-ID: <52B063DF.2020508@pinpointresearch.com> (raw)
In-Reply-To: <CAK=muZtrjsYnXMsqq84bMf5gLY1ytcCjw4ORu48pD0m-bvpMrA@mail.gmail.com>
References: <CAK=muZtrjsYnXMsqq84bMf5gLY1ytcCjw4ORu48pD0m-bvpMrA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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.

Cheers,
Steve



-- 
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: <52B063DF.2020508@pinpointresearch.com>
Permalink:  ../52B063DF.2020508@pinpointresearch.com/
Also on:    postgresql.org/message-id/52B063DF.2020508@pinpointresearch.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: scrawford@pinpointresearch.com, zzepaigh@gmail.com
  Subject: Re: Notice about psql !
  In-Reply-To: <52B063DF.2020508@pinpointresearch.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