Re: Notice about psql !

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: "Doom(dot)zhou" <zzepaigh(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Notice about psql !
Date: 2013-12-17 14:46:55
Message-ID: 52B063DF.2020508@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David Johnston 2013-12-17 15:04:22 Re: Notice about psql !
Previous Message Marcin Krawczyk 2013-12-17 12:06:38 Re: [ADMIN] Scheduled Events