From: | "Doom(dot)zhou" <zzepaigh(at)gmail(dot)com> |
---|---|
To: | David Johnston <polobo(at)yahoo(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Notice about psql ! |
Date: | 2013-12-18 02:35:33 |
Message-ID: | CAK=muZscSxxMZTUUiXnBUkHRk9HE4niyzGLLMrky=sOkWu1wBg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Really thanks
On Tue, Dec 17, 2013 at 11:04 PM, David Johnston <polobo(at)yahoo(dot)com> wrote:
> 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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2013-12-18 02:58:42 | Re: Notice about psql ! |
Previous Message | Campbell, Lance | 2013-12-17 20:24:38 | script to drop and create all indexes in a database with parameter concurrently |