Re: ISO something like "#if 0 ... #endif" for SQL code - Mailing list pgsql-general

From Rick
Subject Re: ISO something like "#if 0 ... #endif" for SQL code
Date
Msg-id 1205865717.355534@no.spam
Whole thread Raw
In response to ISO something like "#if 0 ... #endif" for SQL code  ("Kynn Jones" <kynnjo@gmail.com>)
List pgsql-general
In article <20080311111755.GR1653@frubble.xen.chris-lamb.co.uk>,
Sam Mason <sam@samason.me.uk> wrote:

>I'm not quite sure if this would help your use case, but a few editors
>allow you to send blocks of text to other processes.  For example, under
>Emacs I can hit Ctrl+C twice and it will grab the current paragraph
>and send it off to psql, showing the results in another window.  Once
>I'm happy with the statement I leave it and move on to the next job
>(committing changes to some SCM when appropriate).

You can do that with vi (or vim) as well. Sending a paragraph would
be !}psql


pgsql-general by date:

Previous
From: "Tri Quach"
Date:
Subject: createuser: could not connect to database postgres: FATAL: could not open file "global/pg_database": No such file or directory
Next
From: Tom Lane
Date:
Subject: Re: createuser: could not connect to database postgres: FATAL: could not open file "global/pg_database": No such file or directory