Re: psql slash command '\G' - Mailing list pgsql-patches

From Bernhard Herzog
Subject Re: psql slash command '\G'
Date
Msg-id 6qofhbtyi2.fsf@abnoba.intevation.de
Whole thread Raw
In response to Re: psql slash command '\G'  (Ian Barwick <barwick@gmx.net>)
Responses Re: psql slash command '\G'
List pgsql-patches
Ian Barwick <barwick@gmx.net> writes:

> Peter Eisentraut writes:
> > Propose a macro processor.
>
> Why? What do you envisage? What advantages would this, and presumably the fair
> amount of additional and / or re-coding associated, have for me (or anyone
> else) compared to a more specific solution as suggested below?

If you've compiled psql with readline you could just use readline's
macro system. With e.g.

$if Psql
"\M-g": "\\x\\g\\x"
$endif

in your .inputrc, Meta-g would expand to \x\g\x

   Bernhard

--
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/

pgsql-patches by date:

Previous
From: Ian Barwick
Date:
Subject: Re: psql slash command '\G'
Next
From: Liam Stewart
Date:
Subject: little error messages fix