Re: [HACKERS] Re: psql and \p\g - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Re: psql and \p\g
Date
Msg-id 16636.942358572@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql and \p\g  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
>> This was done to normalize the grammar a little bit (haha, very
>> funny). In particular it allows this sort of stuff:
>> => select * from foo \p \o out.txt \g \\ select * from foo 2 \x \g
>> etc.
>> 
>> Is it *really* necessary to be able to omit the space?

> Yes, I believe it is, in the sense that many people are used to doing
> them together.  Can a backslash trigger some separation of commands, or
> at least \p\g be recognized correctly.  I don't think there are other
> meaningful combinations.

It'd probably be sufficient if backslash-commands that never take
parameters can be adjacent to a following backslash command.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Slow - grindingly slow - query
Next
From: Don Baccus
Date:
Subject: Re: [HACKERS] Indent