From: | Derrell(dot)Lipman(at)UnwiredUniverse(dot)com |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | pgsql-docs(at)postgresql(dot)org |
Subject: | Re: "man psql" \set documentation error |
Date: | 2002-02-26 03:34:18 |
Message-ID: | g03oykzp.fsf@random.localnet.UnwiredUniverse.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Derrell(dot)Lipman(at)UnwiredUniverse(dot)com wrote:
>> Running an application and \set'ing its output in a variable requires use of
>> the backtick '`' operator. Under the heading "SQL INTERPOLATION", the
>> examples should be as follows (the difference being use of backticks instead
>> of single quotes around the command to be executed):
>>
>> Current (wrong):
>> testdb=> \set content '\'' 'cat my_file.txt' '\''
>>
>> Correct:
>> testdb=> \set content '\'' `cat my_file.txt` '\''
>>
>>
>>
>> Current (wrong):
>> testdb=> \set content 'sed -e "s/'/\\\\\\'/g" < my_file.txt'
>>
>> Correct:
>> testdb=> \set content `sed -e "s/'/\\\\\\'/g" < my_file.txt`
>>
>
> I just checked and it looks fine in current sources. Does it look right
> in your browser:
>
> http://candle.pha.pa.us/main/writings/pgsql/sgml/app-psql.html
Yes, it looks correct in that html version; it just has the wrong character in
the nroff "man" version.
Cheers,
Derrell
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-02-26 18:11:48 | Re: PostgreSQL 7.2 docs |
Previous Message | Tom Lane | 2002-02-23 19:08:04 | Re: Majordomo results: Re: 6A20-D98E-81DE : CONFIRM from pgsql- |